Commit 72c6f79c79 for wordpress.org
commit 72c6f79c7944b26533c2a83c8e80301065792ba3
Author: cbravobernal <cbravobernal@git.wordpress.org>
Date: Wed Sep 17 15:00:26 2025 +0000
Block Bindings: Add postType to context for Post Data source
Adds a required `postType` context, which is used in the editor client side.
Props bernhard-reiter, cbravobernal.
Fixes #63994.
Built from https://develop.svn.wordpress.org/trunk@60778
git-svn-id: http://core.svn.wordpress.org/trunk@60114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/block-bindings/post-data.php b/wp-includes/block-bindings/post-data.php
index 37699a3faf..103aa2e850 100644
--- a/wp-includes/block-bindings/post-data.php
+++ b/wp-includes/block-bindings/post-data.php
@@ -60,7 +60,7 @@ function _register_block_bindings_post_data_source() {
array(
'label' => _x( 'Post Data', 'block bindings source' ),
'get_value_callback' => '_block_bindings_post_data_get_value',
- 'uses_context' => array( 'postId' ),
+ 'uses_context' => array( 'postId', 'postType' ), // Both are needed on the client side.
)
);
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 702a55bb88..cfcb58d003 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60777';
+$wp_version = '6.9-alpha-60778';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.