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/post.php

    r18500 r18513  
    33963396                //Do we have an author id or an author login?
    33973397                if ( 0 == intval($post_author) ) {
    3398                     $post_author = get_userdatabylogin($post_author);
     3398                    $post_author = get_user_by('login', $post_author);
    33993399                    if ( empty($post_author) )
    34003400                        continue;
Note: See TracChangeset for help on using the changeset viewer.