WordPress.org

Support

Support » Plugins and Hacks » Critical bug with async counter and widget [includes fix]

Critical bug with async counter and widget [includes fix]

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

  • The topic ‘Critical bug with async counter and widget [includes fix]’ is closed to new replies.