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.
Built from https://develop.svn.wordpress.org/trunk@50528


git-svn-id: http://core.svn.wordpress.org/trunk@50141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
davidbaumwald 2021-03-12 20:05:08 +00:00
parent f27c179afc
commit fb8c18e541
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-50527';
$wp_version = '5.8-alpha-50528';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.