Skip to content

Commit

Permalink
Remove unnecessary reassignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Apr 29, 2024
1 parent 952407e commit dd93a94
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ public function add_block_templates( $query_result, $query, $template_type ) {
// There is the chance that the user customized the default template, installed a theme with a custom template
// and customized that one as well. When that happens, duplicates might appear in the list.
// See: https://github.com/woocommerce/woocommerce/issues/42220.
$theme_slug = wp_get_theme()->get_stylesheet();
$query_result = BlockTemplateUtils::remove_duplicate_customized_templates( $query_result, $theme_slug );

/**
Expand Down

0 comments on commit dd93a94

Please sign in to comment.