Template Name: regex fixup by gjorgensen. fixes #3674

git-svn-id: http://svn.automattic.com/wordpress/trunk@4809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-01-25 19:42:30 +00:00
parent 2df3bc064b
commit b0d10c7ad5
1 changed files with 1 additions and 1 deletions

View File

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