WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/05/2011 04:57:31 PM (9 years ago)
Author:
ryan
Message:

Deprecate get_userdatabylogin() and get_user_by_email(). Props scribu. fixes #18333

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:mergeinfo changed
      /trunk (added)merged: 18512
  • trunk/wp-includes/user.php

    r18504 r18513  
    12971297 */
    12981298function username_exists( $username ) {
    1299     if ( $user = get_userdatabylogin( $username ) ) {
     1299    if ( $user = get_user_by('login', $username ) ) {
    13001300        return $user->ID;
    13011301    } else {
     
    13141314 */
    13151315function email_exists( $email ) {
    1316     if ( $user = get_user_by_email($email) )
     1316    if ( $user = get_user_by('email', $email) )
    13171317        return $user->ID;
    13181318
Note: See TracChangeset for help on using the changeset viewer.