Changeset 56742
- Timestamp:
- 09/29/2023 10:18:05 AM (15 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/border.php
r56709 r56742 153 153 function wp_has_border_feature_support( $block_type, $feature, $default_value = false ) { 154 154 // Check if all border support features have been opted into via `"__experimentalBorder": true`. 155 if ( property_exists( $block_type, 'supports' )) {155 if ( $block_type instanceof WP_Block_Type ) { 156 156 $block_type_supports_border = isset( $block_type->supports['__experimentalBorder'] ) 157 157 ? $block_type->supports['__experimentalBorder'] -
trunk/src/wp-includes/block-supports/colors.php
r56709 r56742 18 18 function wp_register_colors_support( $block_type ) { 19 19 $color_support = false; 20 if ( property_exists( $block_type, 'supports' )) {20 if ( $block_type instanceof WP_Block_Type ) { 21 21 $color_support = isset( $block_type->supports['color'] ) ? $block_type->supports['color'] : false; 22 22 } -
trunk/src/wp-includes/block-supports/typography.php
r56709 r56742 17 17 */ 18 18 function wp_register_typography_support( $block_type ) { 19 if ( ! property_exists( $block_type, 'supports') ) {19 if ( ! ( $block_type instanceof WP_Block_Type ) ) { 20 20 return; 21 21 } … … 86 86 */ 87 87 function wp_apply_typography_support( $block_type, $block_attributes ) { 88 if ( ! property_exists( $block_type, 'supports') ) {88 if ( ! ( $block_type instanceof WP_Block_Type ) ) { 89 89 return array(); 90 90 } -
trunk/src/wp-includes/class-wp-block-supports.php
r55732 r56742 143 143 $registered_block_types = $block_registry->get_all_registered(); 144 144 foreach ( $registered_block_types as $block_type ) { 145 if ( ! property_exists( $block_type, 'supports') ) {145 if ( ! ( $block_type instanceof WP_Block_Type ) ) { 146 146 continue; 147 147 }
Note: See TracChangeset
for help on using the changeset viewer.