Skip to content

Commit

Permalink
Fix bug related to loading child theme overloading templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Olaru committed Apr 6, 2020
1 parent 68b8144 commit 7e757cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/base/_core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function pixelgrade_make_relative_path( $path ) {

$path = wp_normalize_path( $path );

$stylesheet_path = trailingslashit( get_stylesheet_directory_uri() );
$stylesheet_path = trailingslashit( get_stylesheet_directory() );
$template_path = trailingslashit( get_template_directory() );

if ( 0 === strpos( $path, $stylesheet_path ) ) {
Expand Down

0 comments on commit 7e757cb

Please sign in to comment.