[wp-trac] [WordPress Trac] #58319: Improve performance of get_block_theme_folders

WordPress Trac noreply at wordpress.org
Mon May 15 16:24:21 UTC 2023


#58319: Improve performance of get_block_theme_folders
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.9
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 The function get_block_theme_folders can be called a lot in a template
 load. This function contains 2 `file_exists` checks. This can be slow, as
 it is accessing the file system.

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


More information about the wp-trac mailing list