Skip to content

Commit

Permalink
Disable Akismet Comment Nonce in ZenCache Lite as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Dec 29, 2015
1 parent 802c886 commit 26c53a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/includes/classes/Plugin.php
Expand Up @@ -517,13 +517,11 @@ public function setup()
add_action('clear_auth_cookie', array($this, 'autoClearUserCacheCur'));
/*[/pro]*/

/*[pro strip-from="lite"]*/
if ($this->options['enable'] && $this->applyWpFilters(GLOBAL_NS.'_disable_akismet_comment_nonce', true)) {
add_filter('akismet_comment_nonce', function() {
return 'disabled-by-'.SLUG_TD; // MUST return a string literal that is not 'true' or '' (an empty string). See <http://bit.ly/1YItpdE>
}); // See also why the Akismet nonce should be disabled: <http://jas.xyz/1R23f5c>
}
/*[/pro]*/

/*[pro strip-from="lite"]*/
if ($this->options['when_logged_in'] === '1' && $this->applyWpFilters(GLOBAL_NS.'_when_logged_in_no_admin_bar', true)) {
Expand Down

0 comments on commit 26c53a6

Please sign in to comment.