Docs: Fix $feature parameter type in block_has_support().

In `block_has_support()` docblock, the `$feature` parameter is an array, not a string.

Props Soean, audrasjb.
Fixes #56307.
See #55646.

Built from https://develop.svn.wordpress.org/trunk@53799


git-svn-id: http://core.svn.wordpress.org/trunk@53358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-07-30 14:09:10 +00:00
parent 9ddff60ecd
commit 35ab933067
2 changed files with 2 additions and 2 deletions

View File

@ -1017,7 +1017,7 @@ function unregister_block_style( $block_name, $block_style_name ) {
* @since 5.8.0 * @since 5.8.0
* *
* @param WP_Block_Type $block_type Block type to check for support. * @param WP_Block_Type $block_type Block type to check for support.
* @param string $feature Name of the feature to check support for. * @param array $feature Path to a specific feature to check support for.
* @param mixed $default Optional. Fallback value for feature support. Default false. * @param mixed $default Optional. Fallback value for feature support. Default false.
* @return bool Whether the feature is supported. * @return bool Whether the feature is supported.
*/ */

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.1-alpha-53798'; $wp_version = '6.1-alpha-53799';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.