[wp-trac] [WordPress Trac] #60909: Classic Theme with theme.json attempts to load templates

WordPress Trac noreply at wordpress.org
Thu May 2 16:01:45 UTC 2024


#60909: Classic Theme with theme.json attempts to load templates
--------------------------------------+---------------------
 Reporter:  CookiesForDevo            |       Owner:  jorbin
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5.3
Component:  Themes                    |     Version:  6.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by jorbin):

 * owner:  (none) => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58079" 58079]:
 {{{
 #!CommitTicketReference repository="" revision="58079"
 REST API: Return empty object when no fallback templates are found
 (wp/v2/templates/lookup)

 This prevents a number of php notices that are surfaced due to the
 endpoint being called on load of the post editor even when there are no
 templates.

 Props grantmkin, CookiesForDevo, britner, wildworks, jorbin.
 Fixes #60909.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60909#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list