WordPress.org

Make WordPress Core

Ticket #40933: 40933.patch

File 40933.patch, 593 bytes (added by subrataemfluence, 2 years ago)
  • /home/subrara/Desktop/Patches/

    old new  
    48104810        }
    48114811
    48124812        foreach ( $all_headers as $field => $regex ) {
    4813                 if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, $match ) && $match[1] )
     4813                if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . '[\t ]*:(.*)$/mi', $file_data, $match ) && $match[1] )
    48144814                        $all_headers[ $field ] = _cleanup_header_comment( $match[1] );
    48154815                else
    48164816                        $all_headers[ $field ] = '';