Fix notice when adding tag from the Post Tags page. Fixes #10808 props prettyboymp.
git-svn-id: https://develop.svn.wordpress.org/trunk@11951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78efafba1d
commit
4a65c047c5
@ -821,7 +821,7 @@ function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
|
||||
if ( $query_arg )
|
||||
$nonce = $_REQUEST[$query_arg];
|
||||
else
|
||||
$nonce = $_REQUEST['_ajax_nonce'] ? $_REQUEST['_ajax_nonce'] : $_REQUEST['_wpnonce'];
|
||||
$nonce = isset($_REQUEST['_ajax_nonce']) ? $_REQUEST['_ajax_nonce'] : $_REQUEST['_wpnonce'];
|
||||
|
||||
$result = wp_verify_nonce( $nonce, $action );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user