Skip to content

Commit

Permalink
Remove useless variable assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Nov 13, 2023
1 parent 40e111a commit 5d8efc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/class-wp-theme-json-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ protected static function read_theme_json_data_for_theme( $wp_theme ) {
if ( $wp_theme->parent() ) {
$parent_theme_json_file = $wp_theme->parent()->get_file_path( 'theme.json' );
if ( $theme_json_file === $parent_theme_json_file ) {
$theme_json_file = $parent_theme_json_file;
$wp_theme = $wp_theme->parent();
$wp_theme = $wp_theme->parent();
}
}

Expand Down

0 comments on commit 5d8efc8

Please sign in to comment.