Don't process page template description since it is not used. Props simonwheatley. fixes #7850
git-svn-id: https://develop.svn.wordpress.org/trunk@10706 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a2e52bff99
commit
e38f8c8c94
@ -66,10 +66,6 @@ function get_page_templates() {
|
||||
if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) )
|
||||
$name = $name[1];
|
||||
|
||||
$description = '';
|
||||
if( preg_match( '|Description:(.*)$|mi', $template_data, $description ) )
|
||||
$description = $description[1];
|
||||
|
||||
if ( !empty( $name ) ) {
|
||||
$page_templates[trim( $name )] = basename( $template );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user