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-admin/includes/schema.php

    r17928 r18513  
    646646        $errors->add( 'siteid_exists', __( 'The network already exists.' ) );
    647647
    648     $site_user = get_user_by_email( $email );
     648    $site_user = get_user_by( 'email', $email );
    649649    if ( ! is_email( $email ) )
    650650        $errors->add( 'invalid_email', __( 'You must provide a valid e-mail address.' ) );
Note: See TracChangeset for help on using the changeset viewer.