Repository navigation
Commit aca2a31
committed
Tests: Use the public API for REST user post type cleanup.
Replace four `_unregister_post_type()` calls with `unregister_post_type()` in `WP_Test_REST_Users_Controller::wpTearDownAfterClass()`. Preserve the existing class-level cleanup for fixtures that opt out of automatic unregistration.
Developed in: #15490
Props devmuhib.
See #65893.
git-svn-id: https://develop.svn.wordpress.org/trunk@65404 602fd350-edb4-49c9-b593-d223f7449a821 parent b1f0c9f commit aca2a31
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments