WordPress.org

Make WordPress Core

#37379 closed enhancement (fixed)

Pass Profile User Data In User Profile Picture Description

Reported by: turtlepod Owned by: deremohan
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.6
Component: Users Keywords: good-first-bug has-patch 4.7-early
Focuses: administration Cc:

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)

37379.patch (591 bytes) - added by deremohan 15 months ago.
WP_User $profileuser object passed to filter.

Download all attachments as: .zip

Change History (7)

#1 @SergeyBiryukov
15 months ago

  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to Future Release

@deremohan
15 months ago

WP_User $profileuser object passed to filter.

#2 @deremohan
15 months ago

  • Keywords has-patch needs-testing added; needs-patch removed

#3 @SergeyBiryukov
15 months ago

  • Keywords 4.7-early added; needs-testing removed
  • Owner set to deremohan
  • Status changed from new to assigned

Assigning the ticket to mark the good-first-bug as "claimed".

#4 @SergeyBiryukov
13 months ago

  • Milestone changed from Future Release to 4.7

This ticket was mentioned in Slack in #core by helen. View the logs.


13 months ago

#6 @SergeyBiryukov
13 months ago

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

In 38481:

Users: Pass $profileuser parameter to user_profile_picture_description filter on "Edit User" screen.

Props turtlepod, deremohan.
Fixes #37379.

Note: See TracTickets for help on using tickets.