[wp-trac] [WordPress Trac] #62251: Allow wp_register_block_metadata_collection() in themes

WordPress Trac noreply at wordpress.org
Tue Oct 22 15:02:25 UTC 2024


#62251: Allow wp_register_block_metadata_collection() in themes
-----------------------------+------------------------------
 Reporter:  wongjn           |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by louwie17):

 This is not only a blocker for themes, but also a blocker for plugins that
 are symlinked. In WooCommerce we make use of the ABSPATH for registering
 blocks, which will refer to the official plugin directory instead of the
 symlinked version.
 While it doesn't entirely prevents us from still using it in WooCommerce,
 it does make testing it more difficult as many of us use symlinks for
 testing WooCommerce in our local environments.

 Here ( https://github.com/woocommerce/woocommerce/pull/51184 ) is the
 initial implementation of using `wp_register_block_metadata_collection()`
 in WooCommerce.

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


More information about the wp-trac mailing list