Opened 22 months ago
Closed 22 months ago
#62850 closed enhancement (duplicate)
Unable to register collections from mu-plugins / theme directories
| Reported by: | spacedmonkey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Editor | Version: | 6.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
CC @flixos90 who worked on the original patch.