“Quoter” Validation Fix

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 to “Quoter” Validation Fix

  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. Viper007Bond says:

    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. Derrick says:

    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. Viper007Bond says:

    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. Derrick says:

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

    [quote comment="81445"]While I use this plugin, it always show the last comments.

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

    That’s ok, many thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you wish to post code, write it like [code]blah[/code] so it will display properly.