Make WordPress Core

Changeset 51237


Ignore:
Timestamp:
06/25/2021 02:39:13 PM (5 years ago)
Author:
desrosj
Message:

Docs: Various filter docblock improvements.

Follow up to [50776], [50956], [50983].

See #52920.

File:
1 edited

Legend:

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

    r51221 r51237  
    9191                 *
    9292                 * @since 5.0.0
    93                  * @deprecated 5.8.0 The hook transitioned to support also screens that don't contain the $post instance.
     93                 * @deprecated 5.8.0 Use the {@see 'block_categories_all'} filter instead.
    9494                 *
    9595                 * @param array[] $block_categories Array of categories for block types.
     
    115115
    116116        /**
    117          * Filters the allowed block types for all editor types, defaulting to `true`
    118          * (all registered block types supported).
    119          *
     117         * Filters the allowed block types for all editor types.
    120118         *
    121119         * @since 5.8.0
    122120         *
    123          * @param bool|array              $allowed_block_types  Array of block type slugs, or
    124          *                                                      boolean to enable/disable all.
     121         * @param bool|array              $allowed_block_types  Array of block type slugs, or boolean to enable/disable all.
     122         *                                                      Default true (all registered block types supported).
    125123         * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
    126124         */
     
    130128
    131129                /**
    132                  * Filters the allowed block types for the editor, defaulting to true (all
    133                  * block types supported).
     130                 * Filters the allowed block types for the editor.
    134131                 *
    135132                 * @since 5.0.0
    136                  * @deprecated 5.8.0 The hook transitioned to support also screens that don't contain $post instance.
    137                  *
    138                  * @param bool|array $allowed_block_types Array of block type slugs, or
    139                  *                                        boolean to enable/disable all.
     133                 * @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead.
     134                 *
     135                 * @param bool|array $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
     136                 *                                        Default true (all registered block types supported)
    140137                 * @param WP_Post    $post                The post resource data.
    141138                 */
     
    379376                 *
    380377                 * @since 5.0.0
    381                  * @deprecated 5.8.0 The hook transitioned to support also screens that don't contain $post instance.
     378                 * @deprecated 5.8.0 Use the {@see 'block_editor_settings_all'} filter instead.
    382379                 *
    383380                 * @param array   $editor_settings Default editor settings.
     
    407404
    408405        /**
    409          * Filters the array of REST API paths that will be used to preloaded common data
    410          * to use with the block editor.
     406         * Filters the array of REST API paths that will be used to preloaded common data for the block editor.
    411407         *
    412408         * @since 5.8.0
     
    419415
    420416                /**
     417                 * Filters the array of paths that will be preloaded.
     418                 *
    421419                 * Preload common data by specifying an array of REST API paths that will be preloaded.
    422420                 *
    423                  * Filters the array of paths that will be preloaded.
    424                  *
    425421                 * @since 5.0.0
    426                  * @deprecated 5.8.0 The hook transitioned to support also screens that don't contain $post instance.
     422                 * @deprecated 5.8.0 Use the {@see 'block_editor_rest_api_preload_paths'} filter instead.
    427423                 *
    428424                 * @param string[] $preload_paths Array of paths to preload.
Note: See TracChangeset for help on using the changeset viewer.