Skip to content
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

Backport 6.3: REST API Template Controller ignore empty templates #4689

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Jun 25, 2023

Backporting changes from WordPress/gutenberg#46248

Ignore empty templates when looking up a fallback template.

I've copied the changes across from WordPress/gutenberg#46248 but might need a second eye from @jorgefilipecosta or @youknowriad to confirm.

props @jorgefilipecostac

Test npm run test:php -- --filter Tests_REST_WpRestTemplatesController

Trac ticket: https://core.trac.wordpress.org/ticket/58615


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@ramonjd ramonjd force-pushed the update/rest-template-controller-callback branch from 89ed89f to f377ce7 Compare June 26, 2023 00:09
@tellthemachines
Copy link
Contributor

committed in r56051 / a44e46b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

5 participants