Make WordPress Core

Changeset 12983 for trunk/wp-login.php


Ignore:
Timestamp:
02/06/2010 06:20:38 AM (15 years ago)
Author:
dd32
Message:

Switch to *_user_option() for default password nag to avoid extra DB queries. Fixes #11380

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r12981 r12983  
    243243
    244244    wp_set_password($new_pass, $user->ID);
    245     update_usermeta($user->ID, 'default_password_nag', true); //Set up the Password change nag.
     245    update_user_option($user_ID, 'default_password_nag', true, true); //Set up the Password change nag.
    246246    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    247247    $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
Note: See TracChangeset for help on using the changeset viewer.