WordPress.org

Make WordPress Core

Changeset 44394


Ignore:
Timestamp:
01/04/2019 08:57:42 PM (17 months ago)
Author:
desrosj
Message:

REST API: Fix typo when unregistering test post type.

A typo when unregistering a test post type for the WP_Test_REST_Posts_Controller class was preventing it from being properly removed. youseeme now?

Props rahulsprajapati.
Fixes #45124.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r44256 r44394  
    42564256    public function tearDown() {
    42574257        _unregister_post_type( 'private-post' );
    4258         _unregister_post_type( 'youseeeme' );
     4258        _unregister_post_type( 'youseeme' );
    42594259        if ( isset( $this->attachment_id ) ) {
    42604260            $this->remove_added_uploads();
Note: See TracChangeset for help on using the changeset viewer.