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:
Dominik Schilling 2014-11-26 19:19:23 +00:00
parent aba2a6bcfd
commit e002b0fc07
2 changed files with 3 additions and 2 deletions

View File

@ -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 ) {

View File

@ -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.