BlockTemplateController: Remove unncessary PHP variable (https://github.com/woocommerce/woocommerce-blocks/pull/11006)
This commit is contained in:
parent
8b470177f4
commit
c60e6d838b
|
@ -433,8 +433,7 @@ class BlockTemplatesController {
|
||||||
if ( post_password_required() ) {
|
if ( post_password_required() ) {
|
||||||
$template->content = SingleProductTemplate::add_password_form( $template->content );
|
$template->content = SingleProductTemplate::add_password_form( $template->content );
|
||||||
} else {
|
} else {
|
||||||
$new_content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );
|
$template->content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );
|
||||||
$template->content = $new_content;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue