Changeset 61288
- Timestamp:
- 11/24/2025 06:28:21 PM (3 months ago)
- Location:
- branches/6.9
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/wp-includes/block-supports/block-visibility.php (modified) (1 diff)
-
tests/phpunit/tests/block-supports/block-visibility.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/wp-includes/block-supports/block-visibility.php
r61014 r61288 20 20 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); 21 21 22 if ( ! $block_type || ! block_has_support( $block_type, ' blockVisibility', true ) ) {22 if ( ! $block_type || ! block_has_support( $block_type, 'visibility', true ) ) { 23 23 return $block_content; 24 24 } -
branches/6.9/tests/phpunit/tests/block-supports/block-visibility.php
r61014 r61288 64 64 $block_type = $this->register_visibility_block_with_support( 65 65 'test/visibility-block', 66 array( ' blockVisibility' => true )66 array( 'visibility' => true ) 67 67 ); 68 68 … … 91 91 $block_type = $this->register_visibility_block_with_support( 92 92 'test/visibility-block', 93 array( ' blockVisibility' => false )93 array( 'visibility' => false ) 94 94 ); 95 95
Note: See TracChangeset
for help on using the changeset viewer.