Make WordPress Core


Ignore:
Timestamp:
11/26/2014 07:18:02 PM (11 years ago)
Author:
ocean90
Message:

Type cast $nonce to string in wp_verify_nonce().

props jesin.
fixes #29542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r30544 r30576  
    16961696 * @return bool Whether the nonce check passed or failed.
    16971697 */
    1698 function wp_verify_nonce($nonce, $action = -1) {
     1698function wp_verify_nonce( $nonce, $action = -1 ) {
     1699    $nonce = (string) $nonce;
    16991700    $user = wp_get_current_user();
    17001701    $uid = (int) $user->ID;
Note: See TracChangeset for help on using the changeset viewer.