[wp-trac] [WordPress Trac] #57057: Reduce usage of `wp_get_theme`

WordPress Trac noreply at wordpress.org
Thu Nov 10 10:44:56 UTC 2022


#57057: Reduce usage of `wp_get_theme`
--------------------------+--------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  6.1.2
Component:  Themes        |    Version:  6.1
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+--------------------
 The function `wp_get_theme` function returns an instance of `WP_Theme`
 instance. Creating an instance of this class uses resources. In many cases
 this is not needed, as a single property is used. Lowering usage will save
 CPU cycles.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list