From b6092da12a780567b67465c556c4a7e99824bb37 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 5 Dec 2006 12:29:08 +0000 Subject: [PATCH] Fix Template Name and Description metadata regex typo. Props devil1591. fixes #3437 git-svn-id: http://svn.automattic.com/wordpress/trunk@4610 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 002652bb0..de55af2f9 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1292,8 +1292,8 @@ function get_page_templates() { if ( is_array( $templates ) ) { foreach ( $templates as $template ) { $template_data = implode( '', file( ABSPATH.$template )); - preg_match( "|Template Name:(.* )|i", $template_data, $name ); - preg_match( "|Description:(.* )|i", $template_data, $description ); + preg_match( "|Template Name:(.*)|i", $template_data, $name ); + preg_match( "|Description:(.*)|i", $template_data, $description ); $name = $name[1]; $description = $description[1];