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

WordPress Trac noreply at wordpress.org
Tue Feb 1 15:30:00 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 Mamaduka):

 Thanks for the quick follow-up, @costdev.

 I think we might want to include `get_theme_support( 'block-templates' )`
 in condition. The classic themes can also support block templates since
 #53176.

 Cc @bernhard-reiter.

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


More information about the wp-trac mailing list