Timeline for wp_verify_nonce always returns false when logged in as admin
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 8, 2016 at 21:22 | comment | added | Dmitry Gamolin | Sure, it's my bad, I've already updated the question. | |
Oct 8, 2016 at 7:56 | comment | added | cybmeta |
There is nothing about myMainAjaxObject in your question, only myGeoipAjaxObject and the information is incomplete; that is why good descriptions in questions lead to good answers, while incomplete information leads to guessing anwers like this one. For future questions, please remember to include as much information as posible in the question, a repoducible code is the best description.
|
|
Oct 7, 2016 at 22:35 | comment | added | Dmitry Gamolin |
I forgot to mention, myMainAjaxObject is inserted in another script. Since AJAX URL is same for every AJAX request, I just use global one instead of redefining it every time. So this is not what's causing the error. Also if it wouldn't be defined it would never work. Once again, it doesn't work only for the admin, for other users and unauthorized users it works fine. And I do get "Wrong nonce: 73dd02f662" in server response when I'm logged as admin. So I'm 100% sure it's not the URL. Thank you for the suggestion though.
|
|
Oct 7, 2016 at 9:12 | history | undeleted | cybmeta | ||
Oct 7, 2016 at 9:11 | history | deleted | cybmeta | via Vote | |
Oct 7, 2016 at 9:10 | history | answered | cybmeta | CC BY-SA 3.0 |