WordPress.org

Make WordPress Core

Changeset 12839


Ignore:
Timestamp:
01/26/10 17:16:49 (4 years ago)
Author:
ryan
Message:

Deprecate get_user_details(). see #11644

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-deprecated.php

    r12838 r12839  
    102102} 
    103103 
     104/** 
     105 * @deprecated 3.0 
     106 */ 
     107function get_user_details( $username ) { 
     108    _deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' ); 
     109 
     110    return get_user_by('login', $username); 
     111} 
     112 
    104113?> 
  • trunk/wp-includes/ms-functions.php

    r12838 r12839  
    9292 
    9393    return false; 
    94 } 
    95  
    96 // @todo Use get_user_by() and deprecate. 
    97 function get_user_details( $username ) { 
    98     global $wpdb; 
    99     return $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_login = %s", $username) ); 
    10094} 
    10195 
Note: See TracChangeset for help on using the changeset viewer.