From 06ec52753b06617398eb92b50330bc88a65562ea Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 4 Jun 2008 23:15:55 +0000 Subject: [PATCH] Use WP_CONTENT_DIR in get_page_templates(). Props ionfish. see #7059 git-svn-id: http://svn.automattic.com/wordpress/trunk@8051 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 7dae5beba2..ec670ce6a3 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -33,7 +33,7 @@ function get_page_templates() { if ( is_array( $templates ) ) { foreach ( $templates as $template ) { - $template_data = implode( '', file( ABSPATH.$template )); + $template_data = implode( '', file( WP_CONTENT_DIR.$template )); preg_match( '|Template Name:(.*)$|mi', $template_data, $name ); preg_match( '|Description:(.*)$|mi', $template_data, $description );