Skip to content

Commit

Permalink
fix: Template hierarchy ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Oct 20, 2024
1 parent f1b6bd5 commit b38df49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Customizer_Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ public function modify_template_path( string $path, string $name ): string {
return $path;
}

if ( ! static::$locked_templates[ $name ] ) {
$path = \locate_template( array( $name, \WC()->template_path() . $name ) );
}
$path = static::$locked_templates[ $name ] === false
? \locate_template( array( $name, \WC()->template_path() . $name ) )
: false;

return $path ?: static::$custom_templates[ $name ];
}
Expand Down

0 comments on commit b38df49

Please sign in to comment.