Opened 17 years ago
Closed 17 years ago
#9795 closed enhancement (fixed)
Pass user id/user object to actions and filters in wp-admin/user-edit.php
| Reported by: | | Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | normal | Version: | 2.7.1 |
| Component: | Users | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description
wp-admin/user-edit.php file calls many actions and filters, but does not pass user id nor user object to most of then. Of course plugins can get user id from global variable $user_id, but more elegant solution would be to pass user id/user object via extra parameter while calling these actions/filters.
I am attaching two patches: vs 2.7.1 and vs latest nightly build.
Attachments (2)
Change History (3)
Note: See TracTickets for help on using tickets.
Patch vs 2.7.1