WordPress.org

Make WordPress Core

Changeset 46485


Ignore:
Timestamp:
10/14/2019 05:13:35 PM (5 weeks ago)
Author:
whyisjake
Message:

Administration: Ensure that admin referer nonce is valid.

Fix for a testing regression.

Props desrosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/auth.php

    r46477 r46485  
    167167
    168168    public function test_check_admin_referer_with_default_action_as_string_not_doing_it_wrong() {
    169         $this->setExpectedIncorrectUsage( 'check_admin_referer' );
    170169        // A valid nonce needs to be set so the check doesn't die()
    171170        $_REQUEST['_wpnonce'] = wp_create_nonce( '-1' );
Note: See TracChangeset for help on using the changeset viewer.