From e1feb9dc8643f5271fc28f97b26ea5a15a5ee50a Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 1 Apr 2009 05:52:05 +0000 Subject: [PATCH] PHP Notice fix for non-normative nonce action strings. props Viper007Bond. see #9393 git-svn-id: http://svn.automattic.com/wordpress/trunk@10857 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f03f8a4a0..1b70a9fbe 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2282,9 +2282,11 @@ function wp_explain_nonce( $action ) { return $trans[$verb][$noun][0]; } } - } - 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?' ), $matches[4] ); + } else { + return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) ); + } } /**