From fceac051c1ef859393084b845f20081e33e0b363 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@11961 602fd350-edb4-49c9-b593-d223f7449a82 --- 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?' ) ); }