Make WordPress Core


Ignore:
Timestamp:
09/19/2012 01:35:35 AM (13 years ago)
Author:
nacin
Message:

Deprecate user_pass_ok() in favor of wp_authenticate(). see #21907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r21876 r21911  
    190190
    191191    return $count;
    192 }
    193 
    194 /**
    195  * Check that the user login name and password is correct.
    196  *
    197  * @since 0.71
    198  * @todo xmlrpc only. Maybe move to xmlrpc.php.
    199  *
    200  * @param string $user_login User name.
    201  * @param string $user_pass User password.
    202  * @return bool False if does not authenticate, true if username and password authenticates.
    203  */
    204 function user_pass_ok($user_login, $user_pass) {
    205     $user = wp_authenticate($user_login, $user_pass);
    206     if ( is_wp_error($user) )
    207         return false;
    208 
    209     return true;
    210192}
    211193
Note: See TracChangeset for help on using the changeset viewer.