Make WordPress Core


Ignore:
Timestamp:
08/05/2011 04:57:31 PM (13 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/capabilities.php

    r18512 r18513  
    448448            $this->data = get_userdata( $id );
    449449        else
    450             $this->data = get_userdatabylogin( $name );
     450            $this->data = get_user_by('login', $name );
    451451
    452452        if ( empty( $this->data->ID ) )
Note: See TracChangeset for help on using the changeset viewer.