Skip to content

Commit

Permalink
Update inc/paths.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle authored Jun 30, 2022
1 parent 1786165 commit 2760fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function get_file_uri( string $path ): string {
return get_theme_file_uri( theme_relative_path( $path ) );
}

// If the path is inside WP_CONTENT_DIR then remove the asbilute path, passing to content_url().
// If the path is inside WP_CONTENT_DIR then remove the absolute path, passing to content_url().
if ( strpos( $path, WP_CONTENT_DIR ) === 0 ) {
return content_url( str_replace( WP_CONTENT_DIR, '', $path ) );
}
Expand Down

0 comments on commit 2760fb4

Please sign in to comment.