h1“Quoter” Validation Fix

Posted on April 22nd, 2008 at 3:45 AM (3 weeks, 3 days ago)

Seems Quoter doesn’t play 100% nice with WordPress 2.5 (breaks page validation). It’s a simple fix though.

Open the plugin and find this text on line 568:

$text = wpautop($text, 0);

Before it, add this dirty little fix:

$text = str_replace( array('<p><p>', '</p></p>'), array('<p>', '</p>'), $text);

It only works around the problem rather than fixing it, but it seems to do the job as most pages now validate. :)

EDIT: Seems WordPress originally mucked up the code that I had posted. It’s now been fixed.

6 Comments On This Post (Feed)

  1. Having gone to these lengths, how about fixing the plugin so other problems reported can be fixed?

    Peace,
    Gene

  2. You sure that’s the right spot. I’m getting errors in the Admin panel if I use the text on line 568. It’s actually present in another location too.

    Peace,
    Gene

    P.S. What plugin are you using for the instant post preview, etc.?

  3. I just noticed WordPress mucked up my code that I had originally posted. It’s now been fixed.

    Gene Steinberg on April 22nd, 2008 at 6:17 AM wrote:

    Having gone to these lengths, how about fixing the plugin so other problems reported can be fixed?

    I haven’t spotted any other issues.

    Gene Steinberg on April 22nd, 2008 at 6:47 AM wrote:

    P.S. What plugin are you using for the instant post preview, etc.?

    http://www.viper007bond.com/about/plugins-used/

  4. Hi,
    I saw you have fixed some bugs on this plugin, I hope you can give me some hint to solve my problem.
    While I use this plugin, it always show the last comments. Harry had same problem and left a message on author’s web page ( http://www.damagedgoods.it/wp-plugins/quoter/#comment-43264 ) while I can’t see any solution there and that’s why I seek for your kindly help.
    Hope you can help me out if you have time.
    Many thanks,
    Derrick

  5. Derrick on May 2nd, 2008 at 9:52 PM wrote:

    While I use this plugin, it always show the last comments.

    Dunno, sorry. I honestly don’t know the inner workings of Quoter. :(

  6. Viper007Bond on May 3rd, 2008 at 8:01 AM wrote:

    Derrick on May 2nd, 2008 at 9:52 PM wrote:

    While I use this plugin, it always show the last comments.

    Dunno, sorry. I honestly don’t know the inner workings of Quoter. :(

    That’s ok, many thanks.

Leave a Comment

If you would like to leave a trackback to this entry, use this URL. This is also a Gravatar enabled blog, so if you have a Gravatar account, use it!

 

Click Here to Quote Any Selected Text On The Page

XHTML: You can use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

web stats
#