Changeset 30576
- Timestamp:
- 11/26/2014 07:18:02 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/pluggable.php (modified) (1 diff)
-
tests/phpunit/tests/auth.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r30544 r30576 1696 1696 * @return bool Whether the nonce check passed or failed. 1697 1697 */ 1698 function wp_verify_nonce($nonce, $action = -1) { 1698 function wp_verify_nonce( $nonce, $action = -1 ) { 1699 $nonce = (string) $nonce; 1699 1700 $user = wp_get_current_user(); 1700 1701 $uid = (int) $user->ID; -
trunk/tests/phpunit/tests/auth.php
r30471 r30576 70 70 /** 71 71 * 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" 74 74 * wp_hash_password function 75 * 75 * 76 76 * @ticket 24973 77 77 */ … … 100 100 $this->assertFalse( wp_verify_nonce( '' ) ); 101 101 $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 ) ); 102 109 } 103 110
Note: See TracChangeset
for help on using the changeset viewer.