Remove extra line breaks in WordPress

There is a lengthy discussion about removing extra line breaks in WordPress. If you find that breaks (<br />) are being added to your posts then look at /wp-includes/formatting.php (function wpautop – line 135) and change the $br to = ’0′ or ‘false’.

function wpautop($pee, $br = 1) {
and changed to:
function wpautop($pee, $br = false) {

And vuala, the extra line breaks are gone!

Tags:

Leave a Reply