Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #13351, comment 4


Ignore:
Timestamp:
08/15/2012 03:43:34 PM (13 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13351, comment 4

    initial v1  
    55
    66`wp_generate_auth_cookie()` (called via `wp_update_user())` also receives the old data, which causes it to create cookies for the old password and leads to logout: [[BR]]
    7 http://core.trac.wordpress.org/browser/trunk/wp-includes/pluggable.php#L581
     7http://core.trac.wordpress.org/browser/trunk/wp-includes/pluggable.php?rev=21496#L581
    88
    99[attachment:13351.patch] replaces `get_userdata()` with `new WP_User()` in those two places. An alternative would probably be to check if `$_POST` (or a specific key) is empty in `get_user_by()`.