WordPress.org

Make WordPress Core

Changeset 11048


Ignore:
Timestamp:
04/22/09 07:37:24 (6 years ago)
Author:
azaozz
Message:

Don't output <br /> for empty posts, props Denis-de-Bernardy, fixes #6128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r11023 r11048  
    115115 */ 
    116116function wpautop($pee, $br = 1) { 
     117    if ( trim($pee) === '' ) 
     118        return ''; 
    117119    $pee = $pee . "\n"; // just to make things a little easier, pad the end 
    118120    $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 
Note: See TracChangeset for help on using the changeset viewer.