Title: [Plugin: WordPress Popular Posts] Patch suggestion
Last modified: August 20, 2016

---

# [Plugin: WordPress Popular Posts] Patch suggestion

 *  [em-squared](https://wordpress.org/support/users/em-squared/)
 * (@em-squared)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-patch-suggestion/)
 * Hello,
 * We are experiencing trouble in using the most popular posts plugin. We use a 
   wordpress installation with only logged in users trough a SSO. The plugin does
   not register activity if users are authenticated.
 * I suggest to change the line 471 of wordpress-popular-posts.php:
 * `if ( (is_single() || is_page()) && !is_user_logged_in() ) {`
    by: `if ( (is_single()
   || is_page()) ) {`
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-patch-suggestion/#post-2341385)
 * Hi there,
 * Another user also suggested this some time ago. I might include an option within
   WPP to allow people decide whether to include views from logged-in users or not.
   In the meanwhile, whoever needs to register views from authenticated users will
   have to do what you suggested.
 * Thanks for your comment!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Popular Posts] Patch suggestion’ is closed to new 
replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-patch-suggestion/#post-2341385)
 * Status: not a support question