[wp-trac] [WordPress Trac] #62140: Relax restrictions around registration of block metadata collections
WordPress Trac
noreply at wordpress.org
Thu Jan 16 14:02:21 UTC 2025
#62140: Relax restrictions around registration of block metadata collections
--------------------------+---------------------
Reporter: flixos90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7.2
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by flixos90):
Replying to [comment:24 swissspidy]:
> By removing those restrictions, there aren't any issues with custom
themes or symlinked plugins, while theme directory guidelines still
prevent themes in the directory to register blocks.
>
> WordPress historically tried to make things ''just work'' for developers
and not put any unnecessary roadblocks. But now anyone with a symlinked
plugin who wants to register blocks that way would need to use a filter to
make that work.
These restrictions aren't there for no reason. They need to prevent that
someone can register a block metadata collection for e.g. the overall `wp-
content/plugins` directory since otherwise it would conflict with any
plugin's own collections. Without any of that, it would "just work" until
it doesn't. Validation is not arbitrary.
We can certainly think further to come up with a better solution that
makes it possible to use this with symlinked plugins too without using a
filter, while still ensuring the restriction to not use specific locations
remains in place.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62140#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list