Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#62850 closed enhancement (duplicate)

Unable to register collections from mu-plugins / theme directories

Reported by: spacedmonkey's profile spacedmonkey 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)

#1 @spacedmonkey
6 months ago

CC @flixos90 who worked on the original patch.

#2 @flixos90
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Type changed from defect (bug) to enhancement

Duplicate of #62140.

Note: See TracTickets for help on using tickets.