mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55952 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1165,8 +1165,8 @@ function block_version( $content ) {
|
||||
* @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
|
||||
*
|
||||
* @param string $block_name Block type name including namespace.
|
||||
* @param array $style_properties Array containing the properties of the style name,
|
||||
* label, style (name of the stylesheet to be enqueued),
|
||||
* @param array $style_properties Array containing the properties of the style name, label,
|
||||
* style_handle (name of the stylesheet to be enqueued),
|
||||
* inline_style (string containing the CSS to be added).
|
||||
* @return bool True if the block style was registered with success and false otherwise.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user