Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

WP-Popular Posts dosn’t work with WP-SpamShield Plugin

$
0
0

Replies: 1

The post count of the WP-PopularPosts plugin dosn’t work if the WP-SpamShield plugin is activated. It’s because “If the plugin does not identify itself properly as an AJAX request (by adding an X-Requested-With: XMLHttpRequest header)” the SpamShield block the request like a HTTP form post.
To resolve this, I added this line in wordpress-popular-posts.php on line 1378:
xhr.setRequestHeader(‘X-Requested-With’, ‘XMLHttpRequest’);
Now the request header is set correctly and it works.

Hope that help to fix the issue.

Thanx for the great plugin.
Regard Guido


Viewing all articles
Browse latest Browse all 82367

Trending Articles