Make WordPress Core


Ignore:
Timestamp:
05/30/2024 08:52:33 AM (2 years ago)
Author:
swissspidy
Message:

Editor: Improve types in docblock after [58246].

Makes it clearer that an array of strings is expected.

See #61274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-styles-registry.php

    r58246 r58247  
    4747         * @link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/
    4848         *
    49          * @param string|array $block_name       Block type name including namespace or array of namespaced block type names.
    50          * @param array        $style_properties {
     49         * @param string|string[] $block_name       Block type name including namespace or array of namespaced block type names.
     50         * @param array           $style_properties {
    5151         *     Array containing the properties of the style.
    5252         *
Note: See TracChangeset for help on using the changeset viewer.