Make WordPress Core

Opened 3 years ago

#51895 new enhancement

theme_root filter for WP_Theme::get_files

Reported by: rafasashi's profile rafasashi Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:


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.

Change History (0)

Note: See TracTickets for help on using tickets.