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
This commit is contained in:
parent
e1d48f65ce
commit
5cc8fc22a9
|
@ -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?' ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue