mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Don't process page template description since it is not used. Props simonwheatley. fixes #7850
git-svn-id: http://svn.automattic.com/wordpress/trunk@10706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b37719c1f6
commit
e3e53f3463
@ -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