How to remove wpautop in WordPress
Note to myself: when upgrading your WordPress installation remember to add back this function at the end of /wp-includes/functions.php
function remove_wpautop_content_filter() {
remove_filter('the_content','wpautop');
}
Otherwise the handy line
add_action('loop_start','remove_wpautop_content_filter');
in your theme PHP files and which removes WordPress’ automatic inserting of <P> (paragraphs) not only won’t work but it will also ruin your nice layout and spit a ton of errors.
And we don’t want that, right?