Changeset 31046 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 01/04/2015 08:05:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r30687 r31046 48 48 $this->reset_post_types(); 49 49 $this->reset_taxonomies(); 50 $this->reset_post_statuses(); 50 51 } 51 52 … … 106 107 } 107 108 create_initial_taxonomies(); 109 } 110 111 /** 112 * Unregister non-built-in post statuses. 113 */ 114 protected function reset_post_statuses() { 115 foreach ( get_post_stati( array( '_builtin' => false ) ) as $post_status ) { 116 _unregister_post_status( $post_status ); 117 } 108 118 } 109 119
Note: See TracChangeset
for help on using the changeset viewer.