[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:00:15 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: reviewing
Priority: normal | Milestone: 5.3
Component: Users | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Comment (by SergeyBiryukov):
Found a couple of issues with the patch:
* If only the current user is selected, there's a MySQL error: `[You have
an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near ') LIMIT 1' at line
1`
* There's no longer a message that the current user will not be deleted,
it's just silently discarded.
[attachment:"47851.diff"] fixes that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47851#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list