Opened 10 years ago
Closed 10 years ago
#37379 closed enhancement (fixed)
Pass Profile User Data In User Profile Picture Description
| Reported by: | turtlepod | Owned by: | deremohan |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Users | Version: | 4.6 |
| Severity: | normal | Keywords: | good-first-bug has-patch 4.7-early |
| Cc: | Focuses: | administration |
Description
Currently "user_profile_picture_description" filter in "wp-admin/user-edit.php" did not have user data attached to it.
Current stable (4.5.3)
https://github.com/WordPress/WordPress/blob/4.5.3/wp-admin/user-edit.php#L479
Trunk/Master:
https://github.com/WordPress/WordPress/blob/master/wp-admin/user-edit.php#L479
By adding user data, we can filter it based on user data, useful for per-user basis Profile Picture information.
example code:
echo apply_filters( 'user_profile_picture_description', $description, $profileuser );
Attachments (1)
Change History (7)
#1
@
10 years ago
- Keywords needs-patch good-first-bug added
- Milestone Awaiting Review → Future Release
#3
@
10 years ago
- Keywords 4.7-early added; needs-testing removed
- Owner set to
- Status new → assigned
Assigning the ticket to mark the good-first-bug as "claimed".
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
WP_User $profileuser object passed to filter.