-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Akismet comment nonce is not automatically disabled #642
Comments
@Kalfer ZenCache Pro v151220 automatically detects when the HTML contains Is that not happening? Can you explain the problem you're having with the Akismet plugin and ZenCache? |
Yes, I saw that message at the end of my web source code. Now I have Akismet disabled. Is there any alternative to Akismet? Thanks
|
Problem Found: Akismet BugThis is actually a bug in the way Akismet checks the value of Akismet is using If that line in Akismet is changed to Akismet Bug Report OpenedI've opened an Akismet bug report here: https://plugins.trac.wordpress.org/ticket/2467 |
Temporary Fix for Site OwnersYou can use an MU-Plugin to tell Akismet to disable the Akismet Nonce, which will allow ZenCache to continue caching pages even while Akismet is enabled. (This was the intended behavior all along, but due to the bug described above, it's not working as expected in the latest ZenCache release. This MU-Plugin returns a value to Akismet that works around the bug.) Create this file and directory: <?php
/*
Plugin Name: Disable Akismet Comment Nonce
Description: Disables the Akismet comment nonce; required for ZenCache
Author: WebSharks, Inc.
Version: 1.0
Author URI: http://zencache.com/
*/
add_filter('akismet_comment_nonce', function() {
return 'not-true'; // MUST return a string literal; must not be 'true'. See http://bit.ly/1YItpdE
}, PHP_INT_MAX); |
How ZenCache can resolve this in the next releaseIf Akismet does not fix this issue by the next ZenCache release, we can temporarily work around this issue by returning something like The nice thing about returning something like |
EDIT: Added |
Note that this is not be changed/fixed in Akismet for backwards compatibility reasons; see this comment:
All that remains to close this issue is to change ZenCache so that it returns (string) |
Next Pro Release Changelog:
|
ZenCache Pro v160103 has been released and includes changes from this GitHub Issue. See the v160103 announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#642). |
Hey there
I upgraded to Pro v151220 ZenCache, and I found that the Akismet (3.1.6) plugin also causes the issue #601.
Thank you
The text was updated successfully, but these errors were encountered: