[wp-trac] [WordPress Trac] #62140: Consider allowing themes to register block metadata collections

WordPress Trac noreply at wordpress.org
Thu Oct 24 08:03:03 UTC 2024


#62140: Consider allowing themes to register block metadata collections
-------------------------+---------------------
 Reporter:  flixos90     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.7.1
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------
Changes (by swissspidy):

 * keywords:  2nd-opinion => needs-patch
 * milestone:  Awaiting Review => 6.7.1


Comment:

 Re-sharing comments from #62251 /
 https://make.wordpress.org/core/2024/10/17/new-block-type-registration-
 apis-to-improve-performance-in-wordpress-6-7/

 > It should be perfectly fine to allow registering block type collections
 from the theme. At some point, we added the support for individual block
 types to integrate with themes. In practice, it was possible with WP hooks
 to register block type in themes, so we decided to make the experience
 smoother while keep recommending locating block types in plugins.

 > Agreed. Just because it’s discouraged doesn’t mean it should be
 forbidden. Themes in the repo won’t be allowed to have blocks in them
 anyway, and for custom projects developers should have the freedom to do
 this, even if it’s semantically not the best place.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62140#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list