Commit 3de12e67bbe for woocommerce

commit 3de12e67bbe4ef821e15e47c42a0cb0d8bda3699
Author: Tung Du <dinhtungdu@gmail.com>
Date:   Wed May 27 18:07:27 2026 +0700

    Deprecate get_block_type (#65332)

    * fix: deprecate get_full_block_name

    * replace get_full_block_name usage with get_block_type

    * dev: add changelog for block type alias

    * dev: remove block type alias changelog

    * fix: use wc_deprecated_function for block name alias

    * fix: deprecate get_block_type instead

diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php b/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php
index ba72dfff60c..336666503de 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php
@@ -72,9 +72,9 @@ abstract class AbstractBlock {
 	}

 	/**
-	 * Get the interactivity namespace. Only used when utilizing the interactivity API.
-
-	 * @return string The interactivity namespace, used to namespace interactivity API actions and state.
+	 * Get the full block name, including namespace.
+	 *
+	 * @return string
 	 */
 	protected function get_full_block_name() {
 		return $this->namespace . '/' . $this->block_name;
@@ -261,7 +261,7 @@ abstract class AbstractBlock {
 		$block_settings['uses_context'] = $this->get_block_type_uses_context();

 		register_block_type(
-			$this->get_block_type(),
+			$this->get_full_block_name(),
 			$block_settings
 		);
 	}
@@ -269,10 +269,12 @@ abstract class AbstractBlock {
 	/**
 	 * Get the block type.
 	 *
+	 * @deprecated 10.9.0 Use get_full_block_name() instead.
 	 * @return string
 	 */
 	protected function get_block_type() {
-		return $this->namespace . '/' . $this->block_name;
+		wc_deprecated_function( __METHOD__, '10.9.0', 'get_full_block_name' );
+		return $this->get_full_block_name();
 	}

 	/**
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php b/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php
index 859beba25d3..6a0ed831c1f 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php
@@ -279,7 +279,7 @@ final class ProductFilterTaxonomy extends AbstractBlock {

 		$wrapper_attributes = array(
 			'data-wp-interactive' => 'woocommerce/product-filters',
-			'data-wp-key'         => wp_unique_prefixed_id( $this->get_block_type() ),
+			'data-wp-key'         => wp_unique_prefixed_id( $this->get_full_block_name() ),
 			'data-wp-context'     => wp_json_encode(
 				array(
 					'activeLabelTemplate' => $taxonomy_object->labels->singular_name . ': {{label}}',