This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2929use Automattic \WooCommerce \StoreApi \StoreApi ;
3030use Automattic \WooCommerce \Blocks \Shipping \ShippingController ;
3131use Automattic \WooCommerce \Blocks \Templates \SingleProductTemplateCompatibility ;
32- use Automattic \WooCommerce \Blocks \Templates \BlockTemplatesCompatibility ;
32+ use Automattic \WooCommerce \Blocks \Templates \ArchiveProductTemplatesCompatibility ;
3333
3434/**
3535 * Takes care of bootstrapping the plugin.
@@ -131,7 +131,7 @@ function() {
131131 $ this ->container ->get ( ProductSearchResultsTemplate::class );
132132 $ this ->container ->get ( ProductAttributeTemplate::class );
133133 $ this ->container ->get ( ClassicTemplatesCompatibility::class );
134- $ this ->container ->get ( BlockTemplatesCompatibility ::class )->init ();
134+ $ this ->container ->get ( ArchiveProductTemplatesCompatibility ::class )->init ();
135135 $ this ->container ->get ( SingleProductTemplateCompatibility::class )->init ();
136136 $ this ->container ->get ( BlockPatterns::class );
137137 $ this ->container ->get ( PaymentsApi::class );
@@ -279,9 +279,9 @@ function ( Container $container ) {
279279 }
280280 );
281281 $ this ->container ->register (
282- BlockTemplatesCompatibility ::class,
282+ ArchiveProductTemplatesCompatibility ::class,
283283 function () {
284- return new BlockTemplatesCompatibility ();
284+ return new ArchiveProductTemplatesCompatibility ();
285285 }
286286 );
287287
Original file line number Diff line number Diff line change 22namespace Automattic \WooCommerce \Blocks \Templates ;
33
44/**
5- * BlockTemplatesCompatibility class.
5+ * AbstractTemplateCompatibility class.
66 *
77 * To bridge the gap on compatibility with PHP hooks and blockified templates.
88 *
Original file line number Diff line number Diff line change 22namespace Automattic \WooCommerce \Blocks \Templates ;
33
44/**
5- * BlockTemplatesCompatibility class.
5+ * ArchiveProductTemplatesCompatibility class.
66 *
7- * To bridge the gap on compatibility with PHP hooks and blockified templates.
7+ * To bridge the gap on compatibility with PHP hooks and Product Archive blockified templates.
88 *
99 * @internal
1010 */
11- class BlockTemplatesCompatibility extends AbstractTemplateCompatibility {
11+ class ArchiveProductTemplatesCompatibility extends AbstractTemplateCompatibility {
1212
1313 /**
1414 * The custom ID of the loop item block as the replacement of the core/null block.
You can’t perform that action at this time.
0 commit comments