diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index de31a8c77..da67051b9 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -139,7 +139,7 @@ function get_page_templates() { $name = $name[1]; if ( !empty( $name ) ) { - $page_templates[trim( $name )] = theme_basename( $template ); + $page_templates[trim( $name )] = basename( $template ); } } }