Making WordPress.org

Ticket #2651: 2651-readme-parser-colon-bug.diff

File 2651-readme-parser-colon-bug.diff, 413 bytes (added by tellyworth, 8 years ago)

Fix a bug in the readme parser class where blank lines were sometimes ignored following the headers.

  • readme/class-parser.php

     
    198198                        if ( false === strpos( $line, ':' ) ) {
    199199
    200200                                // Some plugins have line-breaks within the headers.
    201                                 if ( ! empty( $line ) ) {
     201                                if ( empty( $line ) ) {
    202202                                        break;
    203203                                } else {
    204204                                        continue;