From ffdb5a89ef27de05e8ded08f5a06dfad743c44dd Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 25 Jan 2007 19:42:30 +0000 Subject: [PATCH] Template Name: regex fixup by gjorgensen. fixes #3674 git-svn-id: https://develop.svn.wordpress.org/trunk@4809 602fd350-edb4-49c9-b593-d223f7449a82 --- 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]; }