From f027b05dff8097a5018e74f5c129bf3e5d0afb72 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@10951 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ); } } }