Turning off automatic line-breaks in WordPress 1.5
March 7th, 2005
Much of the data imported from the old dsandler.org site contains line breaks in unusual spots (in the middle of HTML tags, for example). WP tries to be helpful, inserting <br/>
where it sees a newline, but this is clearly not what I want.
I hacked this fix into my old installation, and now that I’m on to version 1.5, I had to do it again. Here’s the patch, to wp-includes/functions-formatting.php:
--- functions-formatting.orig Mon Mar 7 11:28:11 2005 +++ functions-formatting.php Mon Mar 7 11:21:14 2005 @@ -56 +56 @@ -function wpautop($pee, $br = 1) { +function wpautop($pee, $br = 0) {