WordPress.org

Make WordPress Core

Changeset 459 in tests


Ignore:
Timestamp:
10/19/11 22:37:50 (2 years ago)
Author:
ryan
Message:

s/set_current_user/wp_set_current_user/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_ms.php

    r458 r459  
    114114 
    115115        $old_current = get_current_user_id(); 
    116         set_current_user( $user1_id ); 
     116        wp_set_current_user( $user1_id ); 
    117117 
    118118        $this->assertTrue( is_blog_user() ); 
     
    133133        } 
    134134 
    135         set_current_user( $old_current ); 
     135        wp_set_current_user( $old_current ); 
    136136 
    137137        foreach ( $blog_ids as $blog_id )  
     
    145145 
    146146        $old_current = get_current_user_id(); 
    147         set_current_user( $user1_id ); 
     147        wp_set_current_user( $user1_id ); 
    148148 
    149149        $this->assertTrue( is_user_member_of_blog() ); 
     
    167167        } 
    168168 
    169         set_current_user( $old_current ); 
     169        wp_set_current_user( $old_current ); 
    170170 
    171171        foreach ( $blog_ids as $blog_id )  
Note: See TracChangeset for help on using the changeset viewer.