Make WordPress Core


Ignore:
Timestamp:
05/04/2009 09:12:12 AM (15 years ago)
Author:
westi
Message:

Support single line Template Name comment blocks for theme Templates and apply same cleanup to all header lines. Fixes #8497 props DD32 and Denis-de-Bernardy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r11005 r11168  
    134134            $name = '';
    135135            if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) )
    136                 $name = $name[1];
     136                $name = _cleanup_header_comment($name[1]);
    137137
    138138            if ( !empty( $name ) ) {
Note: See TracChangeset for help on using the changeset viewer.