From a3d28151b24bdd66eb2b9ff82b89923c975a09fc Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 25 Mar 2009 16:51:08 +0000 Subject: [PATCH] Show template files in subdirs. Props DD32. fixes #4131 git-svn-id: http://svn.automattic.com/wordpress/trunk@10835 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 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) :