diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 29e375ab89..8962680c53 100644 --- a/wp-includes/blocks.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 740fdaaf25..2a7cf81a8e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55125'; +$wp_version = '6.2-alpha-55126'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.