• Resolved ctrlaltdelete

    (@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 4 years, 3 months ago by ctrlaltdelete.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Blaz K.

    (@blazk)

    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;
    }
    

    Regards,
    Blaz

    Thread Starter ctrlaltdelete

    (@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.