Make WordPress Core

Changeset 55952


Ignore:
Timestamp:
06/20/2023 10:40:27 PM (8 months ago)
Author:
audrasjb
Message:

Docs: register_block_style() docblock improvement.

This changeset replaces style with style_handle in the description of $style_properties to better match WP_Block_Styles_Registry::register().

Follow-up to [46111], [48102].

Props bacoords, dilipbheda, audrasjb.
Fixes #58562.
See #57840.

File:
1 edited

Legend:

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

    r55910 r55952  
    11661166 *
    11671167 * @param string $block_name       Block type name including namespace.
    1168  * @param array  $style_properties Array containing the properties of the style name,
    1169  *                                 label, style (name of the stylesheet to be enqueued),
     1168 * @param array  $style_properties Array containing the properties of the style name, label,
     1169 *                                 style_handle (name of the stylesheet to be enqueued),
    11701170 *                                 inline_style (string containing the CSS to be added).
    11711171 * @return bool True if the block style was registered with success and false otherwise.
Note: See TracChangeset for help on using the changeset viewer.