Another typo in [4990]. fixes #3920
git-svn-id: https://develop.svn.wordpress.org/trunk@4996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4e26ccb1a4
commit
09131bb5e8
|
@ -280,7 +280,7 @@ function check_admin_referer($action = -1) {
|
||||||
$adminurl = strtolower(get_option('siteurl')).'/wp-admin';
|
$adminurl = strtolower(get_option('siteurl')).'/wp-admin';
|
||||||
$referer = strtolower(wp_get_referer());
|
$referer = strtolower(wp_get_referer());
|
||||||
if ( !wp_verify_nonce($_REQUEST['_wpnonce'], $action) &&
|
if ( !wp_verify_nonce($_REQUEST['_wpnonce'], $action) &&
|
||||||
!(-1 == $action && strpos($referer, $adminurl) !== false))
|
!(-1 == $action && strpos($referer, $adminurl) !== false)) {
|
||||||
wp_nonce_ays($action);
|
wp_nonce_ays($action);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue