Make WordPress Core


Ignore:
Timestamp:
08/11/2022 02:01:35 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve the documented types for various functions and hooks.

See #55646

File:
1 edited

Legend:

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

    r53268 r53877  
    5555     *
    5656     * @since 5.5.0
    57      * @var array|null
     57     * @var string[]|null
    5858     */
    5959    public $parent = null;
     
    6464     *
    6565     * @since 6.0.0
    66      * @var array|null
     66     * @var string[]|null
    6767     */
    6868    public $ancestor = null;
     
    113113     *
    114114     * @since 5.8.0
    115      * @var array
     115     * @var array[]
    116116     */
    117117    public $variations = array();
     
    153153     *
    154154     * @since 5.5.0
    155      * @var array
     155     * @var string[]
    156156     */
    157157    public $uses_context = array();
     
    161161     *
    162162     * @since 5.5.0
    163      * @var array|null
     163     * @var string[]|null
    164164     */
    165165    public $provides_context = null;
     
    240240     *     @type string|null   $category         Block type category classification, used in
    241241     *                                           search interfaces to arrange block types by category.
    242      *     @type array|null    $parent           Setting parent lets a block require that it is only
     242     *     @type string[]|null $parent           Setting parent lets a block require that it is only
    243243     *                                           available when nested within the specified blocks.
    244      *     @type array|null    $ancestor         Setting ancestor makes a block available only inside the specified
     244     *     @type string[]|null $ancestor         Setting ancestor makes a block available only inside the specified
    245245     *                                           block types at any position of the ancestor's block subtree.
    246246     *     @type string|null   $icon             Block type icon.
     
    249249     *                                           result in search interfaces.
    250250     *     @type string|null   $textdomain       The translation textdomain.
    251      *     @type array         $styles           Alternative block styles.
    252      *     @type array         $variations       Block variations.
     251     *     @type array[]       $styles           Alternative block styles.
     252     *     @type array[]       $variations       Block variations.
    253253     *     @type array|null    $supports         Supported features.
    254254     *     @type array|null    $example          Structured data for the block preview.
    255255     *     @type callable|null $render_callback  Block type render callback.
    256256     *     @type array|null    $attributes       Block type attributes property schemas.
    257      *     @type array         $uses_context     Context values inherited by blocks of this type.
    258      *     @type array|null    $provides_context Context provided by blocks of this type.
     257     *     @type string[]      $uses_context     Context values inherited by blocks of this type.
     258     *     @type string[]|null $provides_context Context provided by blocks of this type.
    259259     *     @type string|null   $editor_script    Block type editor only script handle.
    260260     *     @type string|null   $script           Block type front end and editor script handle.
Note: See TracChangeset for help on using the changeset viewer.