[wp-trac] [WordPress Trac] #62140: Consider allowing themes to register block metadata collections
WordPress Trac
noreply at wordpress.org
Thu Oct 24 00:45:19 UTC 2024
#62140: Consider allowing themes to register block metadata collections
-------------------------+------------------------------
Reporter: flixos90 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+------------------------------
Comment (by dougwollison):
I want to push for any such restirctions on **where** a block is
registered from to be removed.
First, as someone who builds tailored sites for projects, I always
register custom block types within the theme. I mean, thats where I'm
already registering custom post types, taxonomies, metadata, and god knows
what else, so why not the blocks that are being styled by the theme?
Second, others have pointed out in the duplicate (#62251) that it breaks
if the hosting environment uses symlinks.
Third, and most simply, ''the current restriction prevents mu-plugins from
registering collections too''. I can't think of any good reason for that
to be the case. If it's updated to allow those too, then at that point why
bother whitelisting directory at all for a ''single'' variant of the
registration API?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62140#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list