[wp-trac] [WordPress Trac] #53824: Fatal error when in action pre_get_posts call *_template()

WordPress Trac noreply at wordpress.org
Tue Feb 15 02:11:49 UTC 2022


#53824: Fatal error when in action pre_get_posts call *_template()
--------------------------+-----------------------------
 Reporter:  Adiasz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Query         |     Version:  5.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by jeremyfelt):

 Replying to [comment:7 peterwilsoncc]:

 > * Within `get_query_template()`, `locate_block_template()` should
 probably check for theme support. If nothing else, it saves on a database
 query.

 Noting this is in as of [52716]. I'm going to comment on that closed
 ticket with a vote to backport to 5.8.2. :)

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


More information about the wp-trac mailing list