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

  1. bigorangemachine
    Posted 5 years ago #

    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:

    return $excerpt;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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