Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39370, comment 5


Ignore:
Timestamp:
03/12/2020 02:52:22 AM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39370, comment 5

    initial v1  
    1 As far as I see this can happen when the `$user_login` has been changed. This cannot happen in code by default ($user_login is not changeable), but can be added/enabled by a plugin.
     1As far as I see this can happen when the `$user_login` has been changed. This cannot happen in core by default ($user_login is not changeable), but can be added/enabled by a plugin.
    22
    33Then the DB query will "find" a user ID as the updated `$user_login` hasn't been saved yet. So using the `$user_login` to confirm if it is the same user doesn't work. Would be better to use the user ID for that.