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/tests/phpunit/tests/auth.php

    r30471 r30576  
    7070    /**
    7171     * Test wp_hash_password trims whitespace
    72      * 
    73      * This is similar to test_password_trimming but tests the "lower level" 
     72     *
     73     * This is similar to test_password_trimming but tests the "lower level"
    7474     * wp_hash_password function
    75      * 
     75     *
    7676     * @ticket 24973
    7777     */
     
    100100        $this->assertFalse( wp_verify_nonce( '' ) );
    101101        $this->assertFalse( wp_verify_nonce( null ) );
     102    }
     103
     104    /**
     105     * @ticket 29542
     106     */
     107    function test_wp_verify_nonce_with_integer_arg() {
     108        $this->assertFalse( wp_verify_nonce( 1 ) );
    102109    }
    103110
Note: See TracChangeset for help on using the changeset viewer.