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:
parent
6eec46900f
commit
b2d74b21b9
|
@ -1902,16 +1902,16 @@ 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),
|
||||||
* style_data (theme.json-like array to generate CSS from).
|
* style_data (theme.json-like array to generate CSS from).
|
||||||
* See WP_Block_Styles_Registry::register().
|
* See WP_Block_Styles_Registry::register().
|
||||||
* @return bool True if the block style was registered with success and false otherwise.
|
* @return bool True if the block style was registered with success and false otherwise.
|
||||||
*/
|
*/
|
||||||
function register_block_style( $block_name, $style_properties ) {
|
function register_block_style( $block_name, $style_properties ) {
|
||||||
|
|
|
@ -46,8 +46,8 @@ 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.
|
||||||
*
|
*
|
||||||
* @type string $name The identifier of the style used to compute a CSS class.
|
* @type string $name The identifier of the style used to compute a CSS class.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue