From b0d10c7ad5121acdcdccf58fdf4410020e237ffa Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 25 Jan 2007 19:42:30 +0000 Subject: [PATCH] Template Name: regex fixup by gjorgensen. fixes #3674 git-svn-id: http://svn.automattic.com/wordpress/trunk@4809 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 9b94ca002f..2f6a986853 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1602,7 +1602,7 @@ function get_file_description( $file ) { } elseif ( file_exists( ABSPATH . $file ) && is_file( ABSPATH . $file ) ) { $template_data = implode( '', file( ABSPATH . $file ) ); - if ( preg_match( "|Template Name:(.* )|i", $template_data, $name )) + if ( preg_match( "|Template Name:(.*)|i", $template_data, $name )) return $name[1]; }