[wp-trac] [WordPress Trac] #58405: Use is_block_theme in WP_Theme

WordPress Trac noreply at wordpress.org
Thu May 25 11:48:32 UTC 2023


#58405: Use is_block_theme in WP_Theme
--------------------------+----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:  good-first-bug
  Focuses:                |
--------------------------+----------------------------
 In line of 366 / 367 of the `WP_Theme` class, there are manual calls to if
 files exists. However, in this context we can use the method
 `is_block_theme`. This remove repeated code and hit an existing cache.

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


More information about the wp-trac mailing list