From 43443bdf1529883e9a39071b86556c15a431786e Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Fri, 12 Mar 2021 20:03:44 +0000 Subject: [PATCH] Docs: Correct `unregister_block_style` @param for `$block_name`. In `unregister_block_style`, the `$block_name` parameter was documented as an array. This change corrects the type to `string`, as that's what is expected in `WP_Block_Styles_Registry->unregister`. Props kraftner. Fixes #52795. git-svn-id: https://develop.svn.wordpress.org/trunk@50528 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 b37ff94ddc..c75179b411 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -902,7 +902,7 @@ function register_block_style( $block_name, $style_properties ) { * @since 5.3.0 * * @param string $block_name Block type name including namespace. - * @param array $block_style_name Block style name. + * @param string $block_style_name Block style name. * @return bool True if the block style was unregistered with success and false otherwise. */ function unregister_block_style( $block_name, $block_style_name ) {