From b86eca3e1f8fa4ac4fac274b08c2a47f1b6a0d70 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@4610 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 002652bb0d..de55af2f93 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];