WordPress.org

Make WordPress Core

Ticket #1020: 1020.diff

File 1020.diff, 555 bytes (added by Nazgul, 8 years ago)
  • wp-includes/theme.php

     
    5656} 
    5757 
    5858function get_theme_data($theme_file) { 
    59         $theme_data = implode('', file($theme_file)); 
     59        $theme_data = str_replace('\r', '\n', implode('', file($theme_file))); 
    6060        preg_match("|Theme Name:(.*)|i", $theme_data, $theme_name); 
    6161        preg_match("|Theme URI:(.*)|i", $theme_data, $theme_uri); 
    6262        preg_match("|Description:(.*)|i", $theme_data, $description);