WordPress.org

Ready to get started?Download WordPress

Forums

Akismet
Useless SQL query for 'akismet_comment_nonce' option (3 posts)

  1. nsitbon
    Member
    Posted 1 year ago #

    Hi, I stumbled upon a query made by Akismet to retrieve the option 'akismet_comment_nonce' in akismet.php line 336 but I can't find where this option is filled. Can you please make the option 'autoloadable' or remove it?
    Thx.

    http://wordpress.org/extend/plugins/akismet/

  2. kjodle
    Member
    Posted 1 year ago #

    Seems necessary to me after reading this:
    http://codex.wordpress.org/Glossary#Nonce

    I'm wondering what issue you are seeing here.

  3. nsitbon
    Member
    Posted 1 year ago #

    Well I have no problem with nonce, my problem is that the plugin seems to be make a useless request on each page load.
    If I look at the readme.txt I can see:

    * Remove the comment nonce form field from the 'Akismet Configuration' page in favor of using a filter, akismet_comment_nonce

    And in akismet.php l 336:
    $akismet_nonce_option = apply_filters( 'akismet_comment_nonce', get_option( 'akismet_comment_nonce' ) );
    but the option is empty and never filled.
    Maybe I am missing something?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags