From 5cc8fc22a91bada73ce5f633af025b5d729061de Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 23 Sep 2009 06:51:19 +0000 Subject: [PATCH] Fix notice in wp_explain_nonce when the supplied action has no extra text. See #10830. git-svn-id: http://svn.automattic.com/wordpress/trunk@11961 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6bfc69e516..f42dd607b2 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2407,7 +2407,7 @@ function wp_explain_nonce( $action ) { } } - return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] ); + return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), isset($matches[4]) ? $matches[4] : '' ); } else { return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) ); }