WordPress.org

Make WordPress Core

Ticket #6128: 6128.diff

File 6128.diff, 615 bytes (added by Denis-de-Bernardy, 5 years ago)
  • Users/denis/Sites/sem-pro/wp-includes/formatting.php

     
    114114 * @return string Text which has been converted into correct paragraph tags. 
    115115 */ 
    116116function wpautop($pee, $br = 1) { 
     117        if ( trim($pee) === '' ) return ''; 
    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