[wp-trac] [WordPress Trac] #54844: Unnecessary database queries when a block theme isn't in use

WordPress Trac noreply at wordpress.org
Fri Feb 4 22:31:28 UTC 2022


#54844: Unnecessary database queries when a block theme isn't in use
--------------------------+------------------------------------
 Reporter:  johnbillion   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9.1
Component:  Query         |     Version:  5.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  template, performance
--------------------------+------------------------------------

Comment (by manfcarlo):

 Replying to [comment:8 costdev]:
 > Both this ticket and #54917 aim to achieve the same thing, but #54917 is
 specifically targeting one instance.
 >
 > As ''this'' ticket existed first, provides the reasons for a change,
 details the impact of not making a change, and its title applies to the
 whole codebase rather than one instance, we can either consider this an
 umbrella ticket, or move the patch from #54917 to here and close it as a
 duplicate.
 >
 > Thoughts?


 The two tickets look like duplicates to me. I don't mind which one is
 closed, but I do prefer the patch over there to the one here. If the theme
 does not support block templates, it seems appropriate for
 `locate_block_template` to refuse to change the template regardless of the
 context in which it's called.

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


More information about the wp-trac mailing list