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
This commit is contained in:
markjaquith 2006-12-05 12:29:08 +00:00
parent 13d055385d
commit b6092da12a
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];