-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better synchronisation between Gutenberg and Core code #37141
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ function gutenberg_add_template_loader_filters() { | |
if ( ! gutenberg_supports_block_templates() ) { | ||
return; | ||
} | ||
|
||
foreach ( gutenberg_get_template_type_slugs() as $template_type ) { | ||
$template_type_slugs = array_keys( get_default_block_template_types() ); | ||
foreach ( $template_type_slugs as $template_type ) { | ||
if ( 'embed' === $template_type ) { // Skip 'embed' for now because it is not a regular template type. | ||
continue; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The template loader is something that landed on 5.8 I believe but was tweaked on 5.9, so ideally the code here should be moved somehow to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep! I see you're addressing that in #37149 👍 |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That filter exists on 5.8 but is slightly different.