Changeset 53299 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 04/28/2022 09:44:12 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r53259 r53299 110 110 * @param WP_Block_Editor_Context $block_editor_context The current block editor context. 111 111 * 112 * @return bool| arrayArray 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. 113 113 */ 114 114 function get_allowed_block_types( $block_editor_context ) { … … 120 120 * @since 5.8.0 121 121 * 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. 123 123 * Default true (all registered block types supported). 124 124 * @param WP_Block_Editor_Context $block_editor_context The current block editor context. … … 135 135 * @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead. 136 136 * 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. 140 140 */ 141 141 $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.