Changeset 61285
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/block-visibility.php
r61014 r61285 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 } -
trunk/tests/phpunit/tests/block-supports/block-visibility.php
r61014 r61285 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.