From 3906f0d812b5fcfac26590554081c551c167463b Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 17 Sep 2025 13:08:04 +0200 Subject: [PATCH] Block Bindings: Add postType to context for Post Data source --- src/wp-includes/block-bindings/post-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/block-bindings/post-data.php b/src/wp-includes/block-bindings/post-data.php index 37699a3faf0c4..103aa2e850419 100644 --- a/src/wp-includes/block-bindings/post-data.php +++ b/src/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. ) ); }