• max_Q

    (@max_q)


    The plugin displays “unauthorized action”.

    WordPress 6.7.2

Viewing 1 replies (of 1 total)
  • Thread Starter max_Q

    (@max_q)

    The problem seems to be that wp_create_nonce() is inside the if() that runs if $_POST[‘Submit’] is not empty. So it doesn’t run on the options page load and never populates the “formcheck_nonce” hidden field with the nonce. The value of the hidden field is an empty string.

    Moving it outside of the if() makes it work.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.