WordPress.org

Make WordPress Core

Ticket #15193: 15193.diff

File 15193.diff, 536 bytes (added by scribu, 9 years ago)
  • wp-includes/functions.php

     
    42244224
    42254225
    42264226        foreach ( $all_headers as $field => $regex ) {
    4227                 preg_match( '/' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field});
     4227                preg_match( '/^' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field});
    42284228                if ( !empty( ${$field} ) )
    42294229                        ${$field} = _cleanup_header_comment( ${$field}[1] );
    42304230                else