#58615 closed enhancement (fixed)
Backport 6.3: REST API Template Controller ignore empty templates
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | REST API | Keywords: | has-patch has-unit-tests gutenberg-merge |
Focuses: | Cc: |
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.
21 months ago
#1
Note: See
TracTickets for help on using
tickets.
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_WpRestTemplatesController
Trac ticket: https://core.trac.wordpress.org/ticket/58615