Template Name: regex fixup by gjorgensen. fixes #3674

git-svn-id: https://develop.svn.wordpress.org/trunk@4809 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-01-25 19:42:30 +00:00
parent 83013c90d2
commit ffdb5a89ef
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];
}