Another typo in [4990]. fixes #3920

git-svn-id: http://svn.automattic.com/wordpress/trunk@4996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-03-07 06:17:15 +00:00
parent 2734ab8ce9
commit 2008fdcbd7
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }