From a8bf4adf413a766ce8d689f6d358095a57f98dbc Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@12033 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 7c8c2494a4..57e3fa7991 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 ) )