Annoying wordpress bug

Rantings April 10th, 2007

Wordpress has an annoying bug of adding <p> whenever there is a line break in the content.

To switch if off you can do the following:


  1. Open the file - wp-includes/default-filters.php
  2. Find the line: add_filter('the_content', 'wpautop');
  3. Change it to: remove_filter('the_content', 'wpautop');
  4. Save the file.
  5. We are done.


Comments

  1. 1
    Prayank Swaroop
    April 11th, 2007 at 3:10 pm

    Well if you are going to try this one, be aware that you will have to add newlines to your post yourself.

    Which I find easier vis-a-vis control on layout.

  2. 2
    Prayank
    April 11th, 2007 at 3:17 pm

    Now having trouble with blank comments on submit

  3. 3
    Prayank
    April 11th, 2007 at 3:24 pm

    Got the blank comments bug fixed with reconfiguring the blog address in wp-admin.

    See the post for this bug here:
    http://plugins.baptiste.us/wordpress/blank-pages-when-posting-comments-in-wordpress/

  4. 4
    Prayank
    April 11th, 2007 at 3:38 pm

    Testing comments bug with “http://www.prayank.net”

  5. 5
    Prayank
    April 11th, 2007 at 3:39 pm

    Test failed.

    Testing comments bug with “http://prayank.net”

  6. 6
    alex
    April 13th, 2007 at 9:31 pm

    hi nice site.

Leave a Comment

blank