Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#9795 closed enhancement (fixed)

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

Reported by: sirzooro's profile sirzooro 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)

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

Download all attachments as: .zip

Change History (3)

@sirzooro
15 years ago

Patch vs 2.7.1

@sirzooro
15 years ago

Patch vs nightly build

#1 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.