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