diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index da67051b9..de31a8c77 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 )] = basename( $template ); + $page_templates[trim( $name )] = theme_basename( $template ); } } } diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index d388b4677..359765b20 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -151,7 +151,7 @@ if ($allowed_files) : ($template_show)" : "$description"; @@ -177,7 +177,7 @@ if ($allowed_files) :