[wp-trac] [WordPress Trac] #48356: wp_create_nonce(...) and check_ajax_referer(...) fails on the 2nd AJAX call if that is two-action AJAX with AJAX-LOGIN as the first action
WordPress Trac
noreply at wordpress.org
Thu Oct 17 15:21:36 UTC 2019
#48356: wp_create_nonce(...) and check_ajax_referer(...) fails on the 2nd AJAX call
if that is two-action AJAX with AJAX-LOGIN as the first action
--------------------------+----------------------
Reporter: KestutisIT | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by ocean90):
* keywords: 2nd-opinion =>
* status: reopened => closed
* focuses: javascript =>
* resolution: => invalid
Comment:
WordPress already provides you the tools. As you already have
demonstrated, sending a new nonce is the way to go, if you want to use
nonces. But since you're already using a custom framework I don't see
what's wrong with a custom implementation that will fit ''your'' needs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48356#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list