Fix Template Name and Description metadata regex typo. Props devil1591. fixes #3437
git-svn-id: https://develop.svn.wordpress.org/trunk@4610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4ea518fd32
commit
b86eca3e1f
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user