Changeset 53240 for trunk/src/wp-includes/block-supports/border.php
- Timestamp:
- 04/21/2022 09:03:05 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/border.php
r53076 r53240 154 154 * @access private 155 155 * 156 * @param WP_Block_Type $block_type Block type to check for support.157 * @param string $feature Name of the feature to check support for.158 * @param mixed $default 156 * @param WP_Block_Type $block_type Block type to check for support. 157 * @param string $feature Name of the feature to check support for. 158 * @param mixed $default_value Fallback value for feature support, defaults to false. 159 159 * @return bool Whether the feature is supported. 160 160 */ 161 function wp_has_border_feature_support( $block_type, $feature, $default = false ) {161 function wp_has_border_feature_support( $block_type, $feature, $default_value = false ) { 162 162 // Check if all border support features have been opted into via `"__experimentalBorder": true`. 163 163 if ( 164 164 property_exists( $block_type, 'supports' ) && 165 ( true === _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), $default ) )165 ( true === _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), $default_value ) ) 166 166 ) { 167 167 return true; … … 170 170 // Check if the specific feature has been opted into individually 171 171 // via nested flag under `__experimentalBorder`. 172 return block_has_support( $block_type, array( '__experimentalBorder', $feature ), $default );172 return block_has_support( $block_type, array( '__experimentalBorder', $feature ), $default_value ); 173 173 } 174 174
Note: See TracChangeset
for help on using the changeset viewer.