mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user