diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 29e375ab89..8962680c53 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -1167,15 +1167,15 @@ function unregister_block_style( $block_name, $block_style_name ) { * * @since 5.8.0 * - * @param WP_Block_Type $block_type Block type to check for support. - * @param array $feature Path to a specific feature to check support for. - * @param mixed $default Optional. Fallback value for feature support. Default false. + * @param WP_Block_Type $block_type Block type to check for support. + * @param array $feature Path to a specific feature to check support for. + * @param mixed $default_value Optional. Fallback value for feature support. Default false. * @return bool Whether the feature is supported. */ -function block_has_support( $block_type, $feature, $default = false ) { - $block_support = $default; +function block_has_support( $block_type, $feature, $default_value = false ) { + $block_support = $default_value; if ( $block_type && property_exists( $block_type, 'supports' ) ) { - $block_support = _wp_array_get( $block_type->supports, $feature, $default ); + $block_support = _wp_array_get( $block_type->supports, $feature, $default_value ); } return true === $block_support || is_array( $block_support );