WordPress.org

Make WordPress Core

Changeset 303 in tests


Ignore:
Timestamp:
05/20/10 19:41:43 (5 years ago)
Author:
westi
Message:

Update following deprecation of get_profile();

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_import_wp.php

    r286 r303  
    28462846    function tearDown() { 
    28472847        parent::tearDown(); 
    2848         if ($id = get_profile('ID', 'User A')) 
    2849             wp_delete_user($id); 
     2848        if ($user = get_user_by('login', 'User A')) 
     2849            wp_delete_user($user->ID); 
    28502850    } 
    28512851     
     
    28722872    function tearDown() { 
    28732873        parent::tearDown(); 
    2874         if ($id = get_profile('ID', 'User A')) 
    2875             wp_delete_user($id); 
     2874        if ($user = get_user_by('login', 'User A')) 
     2875            wp_delete_user($user->ID); 
    28762876    } 
    28772877 
Note: See TracChangeset for help on using the changeset viewer.