[wp-trac] [WordPress Trac] #51895: theme_root filter for WP_Theme::get_files

WordPress Trac noreply at wordpress.org
Sun Nov 29 13:21:09 UTC 2020


#51895: theme_root filter for WP_Theme::get_files
-------------------------+-----------------------------
 Reporter:  rafasashi    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 WP_Theme::get_files() is using a class method that doesn't pass the value
 through the theme_root filter from wp-includes/theme.php

 As a result WP_Theme::get_post_templates() is targeting the default
 theme_root regardless of the filtered value.

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


More information about the wp-trac mailing list