Opened 11 years ago
Closed 10 years ago
#35063 closed defect (bug) (fixed)
user deletion form hook docs incorrect and could use ids of users to be deleted
| Reported by: | usermrpapa | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Users | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs, administration |
Description
When deleting users in the wp admin, the user deletion form fires this action:
/** * Fires at the end of the delete users form prior to the confirm button. * * @since 4.0.0 * * @param WP_User $current_user WP_User object for the user being deleted. */ do_action( 'delete_user_form', $current_user );
the @param docs are wrong... the $current_user is not the user object for the user being deleted - its the user doing the deletion...
which actually is kind of pointless to pass... what really needs to be passed is the list of user ids to be deleted...
purpose of this ticket and patch is to fix the docs and add another argument to the hook...
Attachments (2)
Change History (6)
#1
@
11 years ago
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
- Version 4.4 → 4.0
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch against trunk