[wp-trac] [WordPress Trac] #55301: Provide an API to prevent certain blocks being shown in Widget Areas
WordPress Trac
noreply at wordpress.org
Thu Mar 17 03:35:27 UTC 2022
#55301: Provide an API to prevent certain blocks being shown in Widget Areas
-------------------------------------------------+-------------------------
Reporter: noisysocks | Owner: noisysocks
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.0
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Changes (by noisysocks):
* owner: (none) => noisysocks
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52942" 52942]:
{{{
#!CommitTicketReference repository="" revision="52942"
Add WP_Block_Editor_Context::$name
Adds a new `WP_Block_Editor_Context::$name` and field. This allows plugin
developers to tell which block editor is being loaded when using filters
such as
`allowed_block_types_all` and `block_editor_rest_api_preload_paths`.
Fixes #55301.
Props talldanwp, gziolo, andraganescu.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55301#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list