Editor: Improve types in docblock after [58246].

Makes it clearer that an array of strings is expected.

See #61274.
Built from https://develop.svn.wordpress.org/trunk@58247


git-svn-id: http://core.svn.wordpress.org/trunk@57710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2024-05-30 08:54:07 +00:00
parent 6eec46900f
commit b2d74b21b9
3 changed files with 10 additions and 10 deletions

View File

@ -1902,11 +1902,11 @@ function block_version( $content ) {
* Registers a new block style. * Registers a new block style.
* *
* @since 5.3.0 * @since 5.3.0
* @since 6.6.0 Updated types as registry now allows registering styles for multiple block types at once. * @since 6.6.0 Added support for registering styles for multiple block types.
* *
* @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/ * @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
* *
* @param string|array $block_name Block type name including namespace or array of namespaced block type names. * @param string|string[] $block_name Block type name including namespace or array of namespaced block type names.
* @param array $style_properties Array containing the properties of the style name, label, * @param array $style_properties Array containing the properties of the style name, label,
* style_handle (name of the stylesheet to be enqueued), * style_handle (name of the stylesheet to be enqueued),
* inline_style (string containing the CSS to be added), * inline_style (string containing the CSS to be added),

View File

@ -46,7 +46,7 @@ final class WP_Block_Styles_Registry {
* *
* @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/ * @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
* *
* @param string|array $block_name Block type name including namespace or array of namespaced block type names. * @param string|string[] $block_name Block type name including namespace or array of namespaced block type names.
* @param array $style_properties { * @param array $style_properties {
* Array containing the properties of the style. * Array containing the properties of the style.
* *

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.6-alpha-58246'; $wp_version = '6.6-alpha-58247';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.