mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Require a non-empty $nonce value in wp_verify_nonce().
props ocean90. fixes #29217. git-svn-id: https://develop.svn.wordpress.org/trunk@29620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -91,4 +91,12 @@ class Tests_Auth extends WP_UnitTestCase {
|
||||
$password = "pass with vertial tab o_O\x0B";
|
||||
$this->assertTrue( wp_check_password( 'pass with vertial tab o_O', wp_hash_password( $password ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 29217
|
||||
*/
|
||||
function test_wp_verify_nonce_with_empty_arg() {
|
||||
$this->assertFalse( wp_verify_nonce( '' ) );
|
||||
$this->assertFalse( wp_verify_nonce( null ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user