This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change 22namespace Automattic \WooCommerce \Blocks ;
33
44use Automattic \WooCommerce \Blocks \Domain \Package ;
5- use Automattic \WooCommerce \Blocks \Templates \BlockTemplatesCompatibility ;
65use Automattic \WooCommerce \Blocks \Templates \ProductAttributeTemplate ;
76use Automattic \WooCommerce \Blocks \Utils \BlockTemplateUtils ;
87
@@ -324,14 +323,6 @@ function( $template ) {
324323 $ template ->description = BlockTemplateUtils::get_block_template_description ( $ template ->slug );
325324 }
326325
327- if ( 'single-product ' === $ template ->slug ) {
328- if ( ! is_admin () ) {
329- $ new_content = BlockTemplatesCompatibility::wrap_single_product_template ( $ template ->content );
330- $ template ->content = $ new_content ;
331- }
332- return $ template ;
333- }
334-
335326 return $ template ;
336327 },
337328 $ query_result
Original file line number Diff line number Diff line change 2222use Automattic \WooCommerce \Blocks \Payments \PaymentMethodRegistry ;
2323use Automattic \WooCommerce \Blocks \Registry \Container ;
2424use Automattic \WooCommerce \Blocks \Templates \ClassicTemplatesCompatibility ;
25- use Automattic \WooCommerce \Blocks \Templates \BlockTemplatesCompatibility ;
2625use Automattic \WooCommerce \Blocks \Templates \ProductAttributeTemplate ;
2726use Automattic \WooCommerce \Blocks \Templates \ProductSearchResultsTemplate ;
2827use Automattic \WooCommerce \StoreApi \RoutesController ;
@@ -128,7 +127,6 @@ function() {
128127 $ this ->container ->get ( ProductSearchResultsTemplate::class );
129128 $ this ->container ->get ( ProductAttributeTemplate::class );
130129 $ this ->container ->get ( ClassicTemplatesCompatibility::class );
131- $ this ->container ->get ( BlockTemplatesCompatibility::class );
132130 $ this ->container ->get ( BlockPatterns::class );
133131 $ this ->container ->get ( PaymentsApi::class );
134132 $ this ->container ->get ( ShippingController::class )->init ();
@@ -274,12 +272,6 @@ function ( Container $container ) {
274272 return new ClassicTemplatesCompatibility ( $ asset_data_registry );
275273 }
276274 );
277- $ this ->container ->register (
278- BlockTemplatesCompatibility::class,
279- function () {
280- return new BlockTemplatesCompatibility ();
281- }
282- );
283275 $ this ->container ->register (
284276 DraftOrders::class,
285277 function ( Container $ container ) {
You can’t perform that action at this time.
0 commit comments