mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Require a non-empty $nonce value in wp_verify_nonce().
props ocean90. fixes #29217. git-svn-id: https://develop.svn.wordpress.org/trunk@29620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1707,6 +1707,10 @@ function wp_verify_nonce($nonce, $action = -1) {
|
||||
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
|
||||
}
|
||||
|
||||
if ( empty( $nonce ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$token = wp_get_session_token();
|
||||
$i = wp_nonce_tick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user