mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Type cast $nonce to string in wp_verify_nonce().
props jesin. fixes #29542. git-svn-id: https://develop.svn.wordpress.org/trunk@30576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1695,7 +1695,8 @@ if ( !function_exists('wp_verify_nonce') ) :
|
||||
* @param string|int $action Should give context to what is taking place and be the same when nonce was created.
|
||||
* @return bool Whether the nonce check passed or failed.
|
||||
*/
|
||||
function wp_verify_nonce($nonce, $action = -1) {
|
||||
function wp_verify_nonce( $nonce, $action = -1 ) {
|
||||
$nonce = (string) $nonce;
|
||||
$user = wp_get_current_user();
|
||||
$uid = (int) $user->ID;
|
||||
if ( ! $uid ) {
|
||||
|
||||
Reference in New Issue
Block a user