WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Excerpt
Possible fix for unclosed tags etc. (6 posts)

  1. peterjanes
    Member
    Posted 3 years ago #

    There are two typos in version 3.1 that appear to break tag detection. They're both on line 170, so it's an easy patch:

    -                    if(!in_tag || strpos($chunk, '>') !== false)
    +                    if(!$in_tag || strpos($chunk, '<') !== false)

    I suspect this will fix many of the "unclosed tags" and "breaks HTML" issues people are having.

    http://wordpress.org/extend/plugins/advanced-excerpt/

  2. DanMichel
    Member
    Posted 3 years ago #

    any idea how to fix the fact that line breaks show? i want it to be one long paragraph like the default

  3. DanCoulter
    Member
    Posted 3 years ago #

    I was about to post this fix, but then I saw it was already up. Hopefully it will be fixed in the next update of the plugin.

  4. Li-An
    Member
    Posted 2 years ago #

    Sorry, I don't understand how to patch the file. Must I change the two lines (170 and 171) with your code ?

  5. peterjanes
    Member
    Posted 2 years ago #

    Replace line 170 with the second line of the patch, omitting the '+' prefix. (In "unified diff" syntax, a '-' prefix indicates the original content, and a '+' prefix indicates the new content.)

  6. Li-An
    Member
    Posted 2 years ago #

    Thank you for your precisions :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic