Make WordPress Core


Ignore:
Timestamp:
10/16/2015 07:51:32 PM (9 years ago)
Author:
wonderboymusic
Message:

Unit Tests: since [32953], we can just use self::delete_user() instead of using if logic for Multisite.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r35186 r35224  
    2626        $ids = array( self::$editor_id, self::$grammarian_id );
    2727        foreach ( $ids as $id ) {
    28             if ( is_multisite() ) {
    29                 wpmu_delete_user( $id );
    30             } else {
    31                 wp_delete_user( $id );
    32             }
     28            self::delete_user( $id );
    3329        }
    3430    }
Note: See TracChangeset for help on using the changeset viewer.