mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@44394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e6b45360d
commit
b9c3486f73
@ -4255,7 +4255,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te
|
||||
|
||||
public function tearDown() {
|
||||
_unregister_post_type( 'private-post' );
|
||||
_unregister_post_type( 'youseeeme' );
|
||||
_unregister_post_type( 'youseeme' );
|
||||
if ( isset( $this->attachment_id ) ) {
|
||||
$this->remove_added_uploads();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user