Opened 6 months ago
Closed 6 months ago
#62850 closed enhancement (duplicate)
Unable to register collections from mu-plugins / theme directories
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.7 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
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.
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.)
Change History (2)
Note: See
TracTickets for help on using
tickets.
CC @flixos90 who worked on the original patch.