Changeset 50920 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 05/17/2021 03:06:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r50798 r50920 121 121 */ 122 122 $allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $editor_name ); 123 124 /**125 * Filters the allowed block types for the given editor, defaulting to `true`126 * (all registered block types supported).127 *128 * The dynamic portion of the hook name, `$editor_name`, refers to the name129 * of the editor type, e.g. 'post-editor', 'site-editor', etc.130 *131 * @since 5.8.0132 *133 * @param bool|array $allowed_block_types Array of block type slugs, or134 * boolean to enable/disable all.135 * @param string $editor_name The name of the editor, e.g. 'post-editor'.136 */137 $allowed_block_types = apply_filters( "allowed_block_types_{$editor_name}", $allowed_block_types, $editor_name );138 123 if ( 'post-editor' === $editor_name ) { 139 124 $post = get_post(); … … 268 253 */ 269 254 $editor_settings = apply_filters( 'block_editor_settings_all', $editor_settings, $editor_name ); 270 271 /**272 * Filters the settings to pass to the block editor for a given editor type.273 *274 * The dynamic portion of the hook name, `$editor_name`, refers to the name275 * of the editor type, e.g. 'post-editor', 'site-editor', etc.276 *277 * @since 5.8.0278 *279 * @param array $editor_settings Default editor settings.280 * @param string $editor_name The name of the editor, e.g. 'post-editor'.281 */282 $editor_settings = apply_filters( "block_editor_settings_{$editor_name}", $editor_settings, $editor_name );283 255 if ( 'post-editor' === $editor_name ) { 284 256 $post = get_post();
Note: See TracChangeset
for help on using the changeset viewer.