From da50ef9aed5d07b09f2c3e0aaf5351a0408bf58d Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sat, 30 Jul 2022 14:07:55 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53799 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index a2fd54cf31..62ba1843d7 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -1017,7 +1017,7 @@ 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 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. * @return bool Whether the feature is supported. */