[wp-trac] [WordPress Trac] #30329: After deleting users the number of users listed remains.
WordPress Trac
noreply at wordpress.org
Thu Nov 13 02:48:18 UTC 2014
#30329: After deleting users the number of users listed remains.
--------------------------+----------------------
Reporter: RDall | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Users | Version: 4.0
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by johnbillion):
* status: new => closed
* focuses: multisite =>
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
A user in WordPress is made up if a combination of data from the users
table and the usermeta table.
You need to delete the appropriate rows in the usermeta table too, which
is where the user role information is stored (and where these totals are
calculated from).
Ideally you shouldn't delete users directly from the database and instead
do it via the admin area or with a tool such as WP-CLI.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30329#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list