WordPress.org

Make WordPress Core

Changeset 729 in tests


Ignore:
Timestamp:
05/30/2012 03:57:11 PM (6 years ago)
Author:
ryan
Message:

wp_delete_user() doesn't delete for multisite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_user.php

    r712 r729  
    479479        wp_delete_user( $user_id );
    480480        $user = new WP_User( $user_id );
    481         $this->assertFalse( $user->exists() );
     481        if ( is_multisite() )
     482            $this->assertTrue( $user->exists() );
     483        else
     484            $this->assertFalse( $user->exists() );
    482485
    483486        $this->assertNotNull( get_post( $post_id ) );
Note: See TracChangeset for help on using the changeset viewer.