From 40e0b166151b0da7a2f44195228c2972de34581e Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 14 Oct 2009 20:46:09 +0000 Subject: [PATCH] Page Templates now have there full path specified so no need to prepend WP_CONTENT_DIR. Fixes #10953 props sivel. git-svn-id: http://svn.automattic.com/wordpress/trunk@12033 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 7c8c2494a..57e3fa799 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -131,7 +131,7 @@ function get_page_templates() { if ( is_array( $templates ) ) { foreach ( $templates as $template ) { - $template_data = implode( '', file( WP_CONTENT_DIR.$template )); + $template_data = implode( '', file( $template )); $name = ''; if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) )