WordPress.org

Ready to get started?Download WordPress

Forums

post-views
Critical bug with async counter and widget [includes fix] (1 post)

  1. rpas
    Member
    Posted 1 year ago #

    Hey violetcharm,

    we encountered a bug with version 2.6.2 of the post-views plugin:

    When using the async counter and the post-views widget, the async counter used the post id of the last post in the widget list ... and thereby created incorrect stats for all other viewed posts.

    The fix is quite simple: We inserted a wp_reset_postdata(); at the end of the get_post_views_list-method. This fixed the loop and everything worked fine.

    Could you review this fix und integrate it in a newer version of your plugin?

    Best regards,
    rpas

    http://wordpress.org/extend/plugins/post-views/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.