[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 12:15:33 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 dolphingg):

 @costdev  Suggestion to use {{{current_theme_supports}}} instead of
 {{{get_theme_support}}} because the latter will return an array if the
 condition is true.

 We were testing your patch on version 5.8 and came to the conclusion that
 the function {{{wp_is_block_theme()}}} was introduced in WordPress version
 5.9.

 Can we change the version mentioned in this ticket?

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


More information about the wp-trac mailing list