#16686 closed enhancement (fixed)
$user argument of get_edit_profile_url() should be optional
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Users | Keywords: | has-patch |
| Focuses: | Cc: |
Description
It should default to the current user.
Attachments (2)
Change History (11)
#3
follow-up:
↓ 4
@
15 years ago
Looking at it further, the same treatment can probably be applied to get_dashboard_url(), in fact we can just put the logic there, and pass $user_id = 0 right into get_dashboard_url().
#4
in reply to:
↑ 3
@
15 years ago
Replying to nacin:
in fact we can just put the logic there, and pass $user_id = 0 right into get_dashboard_url().
That is possible, but the $user_id passed into edit_profile_url filter would be 0 instead of an actual ID.
#6
@
12 years ago
- Component changed from General to Users
- Milestone changed from Future Release to 3.9
#7
@
12 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In 27260:
This ticket was mentioned in IRC in #wordpress-dev by svn-b42. View the logs.
12 years ago
Note: See
TracTickets for help on using
tickets.
And it should be renamed from $user to $user_id, for clarity. Generally $user is a WP_User object.