Type cast `$nonce` to string in `wp_verify_nonce()`.
props jesin. fixes #29542. Built from https://develop.svn.wordpress.org/trunk@30576 git-svn-id: http://core.svn.wordpress.org/trunk@30566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aba2a6bcfd
commit
e002b0fc07
|
@ -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 ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-beta2-30575';
|
||||
$wp_version = '4.1-beta2-30576';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue