[wp-trac] [WordPress Trac] #62850: Unable to register collections from mu-plugins / theme directories

WordPress Trac noreply at wordpress.org
Thu Jan 23 22:09:15 UTC 2025


#62850: Unable to register collections from mu-plugins / theme directories
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  6.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The register_collection method was added in [59132]. It allows block
 collections to be register from the incluces path and the plugins
 directory.

 However, it should be possible to register a collection from the following
 directory.

 mu-plugins
 theme directory
 child theme directory.

 Registering from another these directories results in the following doing
 it wrong message.

 {{{#!php
   Function WP_Block_Metadata_Registry::register_collection was called
 incorrectly. Block metadata collections can only be registered for a
 specific plugin. The provided path is neither a core path nor a valid
 plugin path. (This message was added in version 6.7.0.)

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62850>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list