Support » Plugins and Hacks » Advanced Excerpt » [Plugin: Advanced Excerpt] Possible fix for unclosed tags etc.

  • 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • DanMichel

    (@danmichel)


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

    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.

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

    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.)

    Thank you for your precisions 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Advanced Excerpt] Possible fix for unclosed tags etc.’ is closed to new replies.