Commit a05eec7fb1 for wordpress.org
commit a05eec7fb1ff4f892ad5ac87034830666c116082
Author: wildworks <wildworks@git.wordpress.org>
Date: Mon Nov 24 08:07:33 2025 +0000
Editor: Rename block visibility support key to `visibility`.
Renames the support key to `visibility` to avoid conflicting with the Block Visibility plugin's existing `blockVisibility` key.
Follow-up to [61014].
Props andrewserong, annezazu, cbravobernal, dlh, jorbin, joen, johnjamesjacoby, palak678, ramonopoly, talldanwp, tyxla, wildworks.
Fixes #64272.
Built from https://develop.svn.wordpress.org/trunk@61285
git-svn-id: http://core.svn.wordpress.org/trunk@60597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/block-supports/block-visibility.php b/wp-includes/block-supports/block-visibility.php
index 53f8d02f8f..523536cf56 100644
--- a/wp-includes/block-supports/block-visibility.php
+++ b/wp-includes/block-supports/block-visibility.php
@@ -19,7 +19,7 @@
function wp_render_block_visibility_support( $block_content, $block ) {
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
- if ( ! $block_type || ! block_has_support( $block_type, 'blockVisibility', true ) ) {
+ if ( ! $block_type || ! block_has_support( $block_type, 'visibility', true ) ) {
return $block_content;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index bc264f22a0..47cdccd59b 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61284';
+$wp_version = '7.0-alpha-61285';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.