Make WordPress Core


Ignore:
Timestamp:
11/24/2025 06:28:21 PM (9 months ago)
Author:
desrosj
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].

Reviewed by desrosj.

Props andrewserong, annezazu, cbravobernal, dlh, jorbin, joen, johnjamesjacoby, palak678, ramonopoly, talldanwp, tyxla, wildworks.
Fixes #64272.

Location:
branches/6.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-includes/block-supports/block-visibility.php

    r61014 r61288  
    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        }
Note: See TracChangeset for help on using the changeset viewer.