Make WordPress Core

Ticket #14674: 14674.3.diff

File 14674.3.diff, 684 bytes (added by MattyRob, 9 years ago)
  • src/wp-includes/formatting.php

     
    474474        // Add a double line break below block-level closing tags.
    475475        $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
    476476
     477        // hr's are block-level and self-closing
     478        $pee = preg_replace('!(<hr\s?/?>)!', "\n\n$1\n\n", $pee );
     479        //$pee = str_replace( '<hr>', "\n\n<hr>\n\n", $pee );
     480        //$pee = str_replace( '<hr />', "\n\n<hr />\n\n", $pee );
     481
    477482        // Standardize newline characters to "\n".
    478483        $pee = str_replace(array("\r\n", "\r"), "\n", $pee);
    479484