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
This commit is contained in:
Mark Jaquith 2006-12-05 12:29:08 +00:00
parent 4ea518fd32
commit b86eca3e1f
1 changed files with 2 additions and 2 deletions

View File

@ -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];