BlockTemplateController: Remove unncessary PHP variable (https://github.com/woocommerce/woocommerce-blocks/pull/11006)

This commit is contained in:
Tom Cafferkey 2023-09-21 13:54:42 +02:00 committed by GitHub
parent 8b470177f4
commit c60e6d838b
1 changed files with 1 additions and 2 deletions

View File

@ -433,8 +433,7 @@ class BlockTemplatesController {
if ( post_password_required() ) {
$template->content = SingleProductTemplate::add_password_form( $template->content );
} else {
$new_content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );
$template->content = $new_content;
$template->content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );
}
}
}