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:
parent
83013c90d2
commit
ffdb5a89ef
@ -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
Block a user