From 328861f0e35c8ea56932800a8ac66854c5f78905 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Apr 2009 18:28:35 +0000 Subject: [PATCH] Page templates should be relative to the theme ir, not the themes dir. git-svn-id: http://svn.automattic.com/wordpress/trunk@10951 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index de31a8c775..da67051b90 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 ); } } }