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:
parent
2df3bc064b
commit
b0d10c7ad5
|
@ -1602,7 +1602,7 @@ function get_file_description( $file ) {
|
||||||
}
|
}
|
||||||
elseif ( file_exists( ABSPATH . $file ) && is_file( ABSPATH . $file ) ) {
|
elseif ( file_exists( ABSPATH . $file ) && is_file( ABSPATH . $file ) ) {
|
||||||
$template_data = implode( '', 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];
|
return $name[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue