forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block Patterns: Automatically load headered files from a theme's `/pa…
…tterns` directory (WordPress#36751) * Try: Block Patterns: Automatically load headered files from a theme's /patterns directory * Bump 'since' version Props gziolo Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl> * Move to compat/wordpress-6.0, prefix with "gutenberg_" Per feedback from oandregal * Support "Inserter" param * Revert to hooking to 'init' The Pattern block, which block templates can use, is dynamic, sourcing patterns from WP_Block_Patterns_Registry. So we need a much broader hook, such as `init`, to make sure file-based patterns are still registered on the front end. * Add notice reporting * Try making Slug mandatory instead * Misc. code quality and style fixes
- Loading branch information
Showing
1 changed file
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters