[wp-trac] [WordPress Trac] #47851: When deleting a user, there is no need to consider whether the current user has content.

WordPress Trac noreply at wordpress.org
Thu Aug 15 13:05:49 UTC 2019


#47851: When deleting a user, there is no need to consider whether the current user
has content.
-------------------------+-----------------------------
 Reporter:  mt8.biz      |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.3
Component:  Users        |     Version:  5.2
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45806" 45806]:
 {{{
 #!CommitTicketReference repository="" revision="45806"
 Users: When deleting users, exclude the current user from the content
 existence check.

 The current user cannot be deleted, so the check is redundant in that
 context and should only be done for other users.

 Props mt8.biz, SergeyBiryukov.
 Fixes #47851.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47851#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list