From c60e6d838b9731e77837e7cf14275e5209f2ef9d Mon Sep 17 00:00:00 2001 From: Tom Cafferkey Date: Thu, 21 Sep 2023 13:54:42 +0200 Subject: [PATCH] BlockTemplateController: Remove unncessary PHP variable (https://github.com/woocommerce/woocommerce-blocks/pull/11006) --- plugins/woocommerce-blocks/src/BlockTemplatesController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/woocommerce-blocks/src/BlockTemplatesController.php b/plugins/woocommerce-blocks/src/BlockTemplatesController.php index 524cace8838..f0559ec586b 100644 --- a/plugins/woocommerce-blocks/src/BlockTemplatesController.php +++ b/plugins/woocommerce-blocks/src/BlockTemplatesController.php @@ -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 ); } } }