Make WordPress Core


Ignore:
Timestamp:
01/04/2015 08:05:53 PM (10 years ago)
Author:
boonebgorges
Message:

Remove non-built-in post statuses during each unit test teardown.

See #29167.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r30528 r31046  
    332332}
    333333
     334/**
     335 * Unregister a post status.
     336 *
     337 * @since 4.2.0
     338 *
     339 * @param string $status
     340 */
     341function _unregister_post_status( $status ) {
     342    unset( $GLOBALS['wp_post_statuses'][ $status ] );
     343}
     344
    334345function _cleanup_query_vars() {
    335346    // clean out globals to stop them polluting wp and wp_query
Note: See TracChangeset for help on using the changeset viewer.