Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#9795 closed enhancement (fixed)

Pass user id/user object to actions and filters in wp-admin/user-edit.php

Reported by: sirzooro Owned by:
Priority: normal Milestone: 2.8
Component: Users Version: 2.7.1
Severity: normal Keywords: has-patch needs-testing
Cc: Focuses:

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)

user-edit.php.diff​ (922 bytes ) - added by sirzooro 18 years ago.
Patch vs 2.7.1
user-edit.php.nightly.diff​ (1.3 KB ) - added by sirzooro 18 years ago.
Patch vs nightly build

Download all attachments as: .zip

Change History (3)

#1 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [11302]) Pass user to actions. Props sirzooro. fixes #9795

Note: See TracTickets for help on using tickets.