Make WordPress Core


Ignore:
Timestamp:
04/28/2022 09:44:12 AM (3 years ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements.

See #54729

File:
1 edited

Legend:

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

    r53259 r53299  
    110110 * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
    111111 *
    112  * @return bool|array Array of block type slugs, or boolean to enable/disable all.
     112 * @return bool|string[] Array of block type slugs, or boolean to enable/disable all.
    113113 */
    114114function get_allowed_block_types( $block_editor_context ) {
     
    120120     * @since 5.8.0
    121121     *
    122      * @param bool|array              $allowed_block_types  Array of block type slugs, or boolean to enable/disable all.
     122     * @param bool|string[]           $allowed_block_types  Array of block type slugs, or boolean to enable/disable all.
    123123     *                                                      Default true (all registered block types supported).
    124124     * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
     
    135135         * @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead.
    136136         *
    137          * @param bool|array $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
    138          *                                        Default true (all registered block types supported)
    139          * @param WP_Post    $post                The post resource data.
     137         * @param bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
     138         *                                           Default true (all registered block types supported)
     139         * @param WP_Post       $post                The post resource data.
    140140         */
    141141        $allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' );
Note: See TracChangeset for help on using the changeset viewer.