#58615 closed enhancement (fixed)
Backport 6.3: REST API Template Controller ignore empty templates
| Reported by: | ramonopoly | Owned by: | isabel_brison |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | REST API | Version: | 6.3 |
| Severity: | normal | Keywords: | has-patch has-unit-tests gutenberg-merge |
| Cc: | Focuses: |
Description
This ticket tracks the backport of https://github.com/WordPress/wordpress-develop/pull/4689 to WordPress 6.3
Ignore empty templates when using the /lookup endpoint in the WP_REST_Templates_Controller class.
props @jorgefilipecosta
Change History (3)
This ticket was mentioned in PR #4689 on WordPress/wordpress-develop by @ramonopoly.
3 years ago
#1
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Backporting changes from https://github.com/WordPress/gutenberg/pull/46248
Ignore empty templates when looking up a fallback template.
I've copied the changes across from https://github.com/WordPress/gutenberg/pull/46248 but might need a second eye from @jorgefilipecosta or @youknowriad to confirm.
props @jorgefilipecostac
Test
npm run test:php -- --filter Tests_REST_WpRestTemplatesControllerTrac ticket: https://core.trac.wordpress.org/ticket/58615