WordPress.org

Make WordPress Core

Opened 8 months ago

#51895 new enhancement

theme_root filter for WP_Theme::get_files

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

Description

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.