From 42aaa50b6f7420121e6a00649ec0096f0fc9528e Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 28 Sep 2008 21:08:25 +0000 Subject: [PATCH] Fix notice in check_admin_referrer. git-svn-id: http://svn.automattic.com/wordpress/trunk@9026 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index ffbfc620f5..d3d37be766 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -772,7 +772,7 @@ if ( !function_exists('check_admin_referer') ) : function check_admin_referer($action = -1, $query_arg = '_wpnonce') { $adminurl = strtolower(admin_url()); $referer = strtolower(wp_get_referer()); - $result = wp_verify_nonce($_REQUEST[$query_arg], $action); + $result = isset($_REQUEST[$query_arg]) ? wp_verify_nonce($_REQUEST[$query_arg], $action) : false; if ( !$result && !(-1 == $action && strpos($referer, $adminurl) !== false) ) { wp_nonce_ays($action); die();