Opened 17 years ago
Closed 16 years ago
#7774 closed defect (bug) (fixed)
Deleting a user does not update link category count
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.6.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
I created an administrator user, logged in as that user, created a link category, and then created four pages assigned to that category. Later, when I deleted the user (not reassigning to admin), the links were deleted, but the link category still showed the count of four. The link category should have been decremented by the count of deleted links.
FYI: This was with version 2.6.2, though that was not available in the version drop-down for creating the ticket.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
The fix for this is to modify wp-admin\includes\user.php. In the wp_delete_user function, replace this code:
with this code: