From 2adde79286d6d256c9cf8a5994fe5b1425ae9f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 3 May 2024 13:14:18 +0200 Subject: [PATCH] Update the version number of some methods in AbstractTemplateCompatibility (#47118) * Update the version number of some methods in AbstractTemplateCompatibility * Add changelog file --- .../woocommerce/changelog/update-class-property-since-tbd | 4 ++++ .../src/Blocks/Templates/AbstractTemplateCompatibility.php | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 plugins/woocommerce/changelog/update-class-property-since-tbd diff --git a/plugins/woocommerce/changelog/update-class-property-since-tbd b/plugins/woocommerce/changelog/update-class-property-since-tbd new file mode 100644 index 00000000000..312133dd991 --- /dev/null +++ b/plugins/woocommerce/changelog/update-class-property-since-tbd @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Update the version number of some methods in AbstractTemplateCompatibility diff --git a/plugins/woocommerce/src/Blocks/Templates/AbstractTemplateCompatibility.php b/plugins/woocommerce/src/Blocks/Templates/AbstractTemplateCompatibility.php index abf30f400a9..3d622a345c2 100644 --- a/plugins/woocommerce/src/Blocks/Templates/AbstractTemplateCompatibility.php +++ b/plugins/woocommerce/src/Blocks/Templates/AbstractTemplateCompatibility.php @@ -29,13 +29,13 @@ abstract class AbstractTemplateCompatibility { add_filter( 'render_block_data', - function( $parsed_block, $source_block, $parent_block ) { + function ( $parsed_block, $source_block, $parent_block ) { /** * Filter to disable the compatibility layer for the blockified templates. * * This hook allows to disable the compatibility layer for the blockified templates. * - * @since TBD + * @since 7.6.0 * @param boolean. */ $is_disabled_compatility_layer = apply_filters( 'woocommerce_disable_compatibility_layer', false ); @@ -45,7 +45,6 @@ abstract class AbstractTemplateCompatibility { } return $this->update_render_block_data( $parsed_block, $source_block, $parent_block ); - }, 10, 3 @@ -59,7 +58,7 @@ abstract class AbstractTemplateCompatibility { * * This hook allows to disable the compatibility layer for the blockified. * - * @since TBD + * @since 7.6.0 * @param boolean. */ $is_disabled_compatility_layer = apply_filters( 'woocommerce_disable_compatibility_layer', false );