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
This commit is contained in:
Peter Westwood 2009-09-23 06:51:19 +00:00
parent f7a1111e3c
commit fceac051c1
1 changed files with 1 additions and 1 deletions

View File

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