On my test install of WordPress 22.214.171.124, I wanted to get rid of that damned annoying “autop” function that feels like inserting “p” tags willy-nilly. Generally speaking to do this you bust open /wp-includes/functions-formatting.php and find
function wpautop($pee, $br = 1)
Change the 1 to a 0 and you’re in business. But apparently this is not the case in my install. Not sure if this is a bug in 126.96.36.199 or my install is just acting wacky. In my case, I had to kill the line:
$pee = preg_replace('/n?(.+?)(?:ns*n|z)/s', “t
n”, $pee); // make paragraphs, including one at the end
Might have to double check that once I get home, but I’m pretty sure that’s the right one. Happy WordPress hacking.