[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 13:33:51 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:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.2.3
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+------------------------------

Comment (by KestutisIT):

 The correct code for demo purpose had to be this:

 {{{#!php
 <?php
 var SpecialPluginMain = {
     globals: SpecialPluginGlobals,
     lang: SpecialPluginLang,
     vars: SpecialPluginVars,
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48356#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list