[wp-trac] [WordPress Trac] #62140: Relax restrictions around registration of block metadata collections
WordPress Trac
noreply at wordpress.org
Wed Jan 29 21:15:19 UTC 2025
#62140: Relax restrictions around registration of block metadata collections
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7.2
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by flixos90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"59731" 59731]:
{{{
#!CommitTicketReference repository="" revision="59731"
Editor: Relax restrictions around registration of block metadata
collections.
This changeset allows for block metadata collections to be registered for
almost any source, such as MU plugins, themes, or custom directories with
e.g. symlinked plugins or symlinked themes. Prior to the change, block
metadata collections could only be registered for plugins and WordPress
Core.
There are still safeguards in place to prevent registration of collections
in locations that would cause conflicts. For example, it is not possible
to register a collection for the entire wp-content/plugins directory or
the entire wp-content/themes directory, since such a collection would
conflict with any specific plugin's or theme's collection. In case
developers would like to enable this safeguard for their own custom
directories, they can use the new
wp_allowed_block_metadata_collection_roots filter.
Reviewed by jorbin.
Merges [59730] to the 6.7 branch.
Props assassinateur, bowedk, desrosj, dougwollison, flixos90, glynnquelch,
gziolo, jorbin, mreishus, swissspidy.
Fixes #62140.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62140#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list