From 962e8d1a3126500e5cf416ddb46de4c5b8c9a677 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 20 Jun 2023 22:40:27 +0000 Subject: [PATCH] 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 --- src/wp-includes/blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 41b8430f98..729c789683 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -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. */