WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Get Summary Glitch - Right Triangle Bracket as Summary - qTranslat (1 post)

  1. bigorangemachine
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by bigorangemachine
  • This topic is not resolved
  • WordPress version: 3.0.4