From a1037e99545bf2d8753966c9af14e575b506ac99 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 25 Mar 2009 16:51:08 +0000 Subject: [PATCH] Show template files in subdirs. Props DD32. fixes #4131 git-svn-id: https://develop.svn.wordpress.org/trunk@10835 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/theme.php | 2 +- wp-admin/theme-editor.php | 6 +++--- wp-includes/theme.php | 43 ++++++++++++++++++++++++++++++++++--- 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index da67051b90..de31a8c775 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 d388b4677f..359765b201 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) :