Support » Plugin: WordPress Popular Posts » [Plugin: WordPress Popular Posts] Get Summary Glitch – Right Triangle Bracket as Summary – qTranslat

  • Hi!
    Great plugin works very well for me!

    There is a slight issue in the function get_summary($id, $instance) function.

    This line:
    $excerpt = preg_replace("/<object[0-9 a-z_?*=\":\-\/\.#\,\\n\\r\\t]+/smi", "", $excerpt); sometimes leaves hanging >’s!

    I think this maybe a conflict with qTranslate (as it puts in the <!–:en–><!–:–> tags).

    The situation that makes it not work for me is when you put just the YouTube Embed code into the post (with qtranslate enabled and active) and the widget tries to pull out that post as a popular post.

    Of course my quick patch is to do:

    if(trim($excerpt)=='>'){$excerpt='';}
    return $excerpt;

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  • The topic ‘[Plugin: WordPress Popular Posts] Get Summary Glitch – Right Triangle Bracket as Summary – qTranslat’ is closed to new replies.