WordPress build repository browser

Changeset 60597


Ignore:
Timestamp:
11/24/2025 08:07:33 AM (15 hours ago)
Author:
wildworks
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/block-supports/block-visibility.php

    r60350 r60597  
    2020    $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
    2121
    22     if ( ! $block_type || ! block_has_support( $block_type, 'blockVisibility', true ) ) {
     22    if ( ! $block_type || ! block_has_support( $block_type, 'visibility', true ) ) {
    2323        return $block_content;
    2424    }
  • trunk/wp-includes/version.php

    r60596 r60597  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '7.0-alpha-61284';
     19$wp_version = '7.0-alpha-61285';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.