Make WordPress Core


Ignore:
Timestamp:
06/02/2007 12:02:06 AM (17 years ago)
Author:
rob1n
Message:

Keep greedy regex's in control. fixes #4165

File:
1 edited

Legend:

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

    r5581 r5630  
    7474    $theme_data = implode( '', file( $theme_file ) );
    7575    $theme_data = str_replace ( '\r', '\n', $theme_data );
    76     preg_match( '|Theme Name:(.*)|i', $theme_data, $theme_name );
    77     preg_match( '|Theme URI:(.*)|i', $theme_data, $theme_uri );
    78     preg_match( '|Description:(.*)|i', $theme_data, $description );
    79     preg_match( '|Author:(.*)|i', $theme_data, $author_name );
    80     preg_match( '|Author URI:(.*)|i', $theme_data, $author_uri );
    81     preg_match( '|Template:(.*)|i', $theme_data, $template );
     76    preg_match( '|Theme Name:(.*)$|mi', $theme_data, $theme_name );
     77    preg_match( '|Theme URI:(.*)$|mi', $theme_data, $theme_uri );
     78    preg_match( '|Description:(.*)$|mi', $theme_data, $description );
     79    preg_match( '|Author:(.*)$|mi', $theme_data, $author_name );
     80    preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri );
     81    preg_match( '|Template:(.*)$|mi', $theme_data, $template );
    8282   
    8383    if ( preg_match( '|Version:(.*)|i', $theme_data, $version ) )
Note: See TracChangeset for help on using the changeset viewer.