WordPress.org

Make WordPress Core

Ticket #9305: formatting.php.diff

File formatting.php.diff, 493 bytes (added by gcorne, 9 years ago)
  • formatting.php

     
    114114 * @return string Text which has been converted into correct paragraph tags.
    115115 */
    116116function wpautop($pee, $br = 1) {
     117        if ($pee === '') return $pee;
    117118        $pee = $pee . "\n"; // just to make things a little easier, pad the end
    118119        $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    119120        // Space things out a little