[wp-trac] [WordPress Trac] #52920: Editor: Abstract block editor configuration
WordPress Trac
noreply at wordpress.org
Wed Apr 21 17:26:21 UTC 2021
#52920: Editor: Abstract block editor configuration
-------------------------------------------------+-------------------------
Reporter: gziolo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.8
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by jeremyfelt):
From [50777]:
`$block_categories = apply_filters( 'block_categories_all',
$block_categories, $editor_name );`
If the variable filter `block_categories_{$editor_name}` is not needed,
and nothing is changing about the `$block_categories` parameter, then it
may be that `block_categories` does not need to be deprecated. We can just
add `$editor_name` as a new parameter. Otherwise it seems like the
`block_categories_all` and `block_categories` filters are effectively the
same thing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52920#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list