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/tests/phpunit/tests/block-supports/block-visibility.php

    r61014 r61288  
    6464                $block_type = $this->register_visibility_block_with_support(
    6565                        'test/visibility-block',
    66                         array( 'blockVisibility' => true )
     66                        array( 'visibility' => true )
    6767                );
    6868
     
    9191                $block_type = $this->register_visibility_block_with_support(
    9292                        'test/visibility-block',
    93                         array( 'blockVisibility' => false )
     93                        array( 'visibility' => false )
    9494                );
    9595
Note: See TracChangeset for help on using the changeset viewer.