Make WordPress Core


Ignore:
Timestamp:
06/14/2007 02:25:30 AM (19 years ago)
Author:
ryan
Message:

Trim empty lines. Nothing but newline.

File:
1 edited

Legend:

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

    r5630 r5700  
    7171        'strong' => array()
    7272    );
    73    
     73
    7474    $theme_data = implode( '', file( $theme_file ) );
    7575    $theme_data = str_replace ( '\r', '\n', $theme_data );
     
    8080    preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri );
    8181    preg_match( '|Template:(.*)$|mi', $theme_data, $template );
    82    
     82
    8383    if ( preg_match( '|Version:(.*)|i', $theme_data, $version ) )
    8484        $version = wp_kses( trim( $version[1] ), $themes_allowed_tags );
    8585    else
    8686        $version = '';
    87    
     87
    8888    if ( preg_match('|Status:(.*)|i', $theme_data, $status) )
    8989        $status = wp_kses( trim( $status[1] ), $themes_allowed_tags );
    9090    else
    9191        $status = 'publish';
    92    
     92
    9393    $name = $theme = wp_kses( trim( $theme_name[1] ), $themes_allowed_tags );
    9494    $theme_uri = clean_url( trim( $theme_uri[1] ) );
    9595    $description = wptexturize( wp_kses( trim( $description[1] ), $themes_allowed_tags ) );
    9696    $template = wp_kses( trim( $template[1] ), $themes_allowed_tags );
    97    
     97
    9898    $author_uri = clean_url( trim( $author_uri[1] ) );
    99    
     99
    100100    if ( empty( $author_uri[1] ) ) {
    101101        $author = wp_kses( trim( $author_name[1] ), $themes_allowed_tags );
Note: See TracChangeset for help on using the changeset viewer.