Make WordPress Core


Ignore:
Timestamp:
03/12/2021 08:03:44 PM (4 years ago)
Author:
davidbaumwald
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r50419 r50528  
    903903 *
    904904 * @param string $block_name       Block type name including namespace.
    905  * @param array $block_style_name Block style name.
     905 * @param string $block_style_name Block style name.
    906906 * @return bool True if the block style was unregistered with success and false otherwise.
    907907 */
Note: See TracChangeset for help on using the changeset viewer.