From 778bf0c721ae0a26f316701360e37c40da267b07 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Mon, 14 Oct 2019 17:13:35 +0000 Subject: [PATCH] Administration: Ensure that admin referer nonce is valid. Fix for a testing regression. Props desrosj. git-svn-id: https://develop.svn.wordpress.org/trunk@46485 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/auth.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/phpunit/tests/auth.php b/tests/phpunit/tests/auth.php index 5c4b3d3df8..a2a190f36c 100644 --- a/tests/phpunit/tests/auth.php +++ b/tests/phpunit/tests/auth.php @@ -166,7 +166,6 @@ class Tests_Auth extends WP_UnitTestCase { } public function test_check_admin_referer_with_default_action_as_string_not_doing_it_wrong() { - $this->setExpectedIncorrectUsage( 'check_admin_referer' ); // A valid nonce needs to be set so the check doesn't die() $_REQUEST['_wpnonce'] = wp_create_nonce( '-1' ); $result = check_admin_referer( '-1' );