WordPress.org

Make WordPress Core

Ticket #7850: do_not_process_description.diff

File do_not_process_description.diff, 722 bytes (added by simonwheatley, 5 years ago)

Patch removes the unnecessary processing of Description in template files

  • Users/simon/Projects/WordPress/site/wordpress/wp-admin/includes/theme.php

     
    3636                        $template_data = implode( '', file( WP_CONTENT_DIR.$template )); 
    3737 
    3838                        preg_match( '|Template Name:(.*)$|mi', $template_data, $name ); 
    39                         preg_match( '|Description:(.*)$|mi', $template_data, $description ); 
    4039 
    4140                        $name = $name[1]; 
    42                         $description = $description[1]; 
    4341 
    4442                        if ( !empty( $name ) ) { 
    4543                                $page_templates[trim( $name )] = basename( $template );