Support » Plugin: Rate my Post - WP Rating System » Nonces, do we need them?

  • Resolved ctrlaltdelete


    I have read the documentation:
    I have ajax enabled.
    i have this on my functions:
    add_filter( 'nonce_life', function () { return 7 * DAY_IN_SECONDS; } );
    I have html cache set to 604799 seconds.

    Still the error shows up after 7 days.

    Is there a way to completely disable nonce check? I really prefer people being able to vote always. Thanks!

    • This topic was modified 1 year, 12 months ago by ctrlaltdelete.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Blaz K.


    You can rewrite the private function has_valid_nonce in \rate-my-post\public\class-rate-my-post-public.php like this:

    private function has_valid_nonce( $nonce ) {
      $data = array(
        'valid' => true,
        'error' => false,
      return $data;


    Thread Starter ctrlaltdelete


    Thanks done. Please consider making it a setting so it doesn’t get overwritten with each update. Think of the children.

    Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Nonces, do we need them?’ is closed to new replies.