WordPress.org

Make WordPress Core

Changeset 18513 for trunk/wp-mail.php


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-mail.php

    r14924 r18513  
    114114                if ( is_email($author) ) {
    115115                    echo '<p>' . sprintf(__('Author is %s'), $author) . '</p>';
    116                     $userdata = get_user_by_email($author);
     116                    $userdata = get_user_by('email', $author);
    117117                    if ( empty($userdata) ) {
    118118                        $author_found = false;
Note: See TracChangeset for help on using the changeset viewer.