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

WordPress Trac noreply at wordpress.org
Fri Apr 26 18:27:41 UTC 2024


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

Comment (by jorbin):

 Even though it feels unlikely that folks are using this endoint outside of
 the editor, ruturning a 404 rather than a 200 would be a breaking change
 that I think should be avoided, especially in a minor release.

 What are the thoughts on if `$fallback_template` is falsey, to skip
 `prepare_item_for_response` and keep the return value the same.

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


More information about the wp-trac mailing list