mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01: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. Built from https://develop.svn.wordpress.org/trunk@55952 git-svn-id: http://core.svn.wordpress.org/trunk@55464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c19c30b00d
commit
84d55e7e0f
@ -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.
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55951';
|
||||
$wp_version = '6.3-alpha-55952';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user