[wp-trac] [WordPress Trac] #37899: Make Profile Picture Section of Edit User Admin Page Filterable

WordPress Trac noreply at wordpress.org
Wed Aug 31 19:52:53 UTC 2016


#37899: Make Profile Picture Section of Edit User Admin Page Filterable
----------------------------+-----------------------------
 Reporter:  Kelderic        |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Currently the Edit User page contains a section under the Biography
 showing the user's Profile Picture (avatar). This picture isn't editable,
 because WordPress uses Gravatar.

 This behavior isn't typical. More commonly, websites with self-created
 user accounts also allow the user to upload a custom profile picture.
 There are a number of plugins which implement this behavior:

 https://wordpress.org/plugins/custom-user-profile-photo/
 https://wordpress.org/plugins/metronet-profile-picture/
 https://wordpress.org/plugins/wp-user-avatar/
 https://wordpress.org/plugins/basic-user-avatars/
 https://wordpress.org/plugins/simple-local-avatars/

 They all share a problem though, which is that they can't touch the native
 Profile Picture section. They all add their own HTML elsewhere on the
 page. This results in an Edit User page with two Profile Picture sections.
 CSS can hide the native non-editable section, but that's not ideal.

 I'd like to propose that we make the native profile section filterable, so
 that plugins can override it to enhance it directly rather than adding
 another section to the page.

 If we move the hard-coded HTML of that section into a function call that
 is filterable, plugins could just enhance the native section itself. This
 would prevent multiple Profile Picture sections and keep everything in the
 native location on the page.

 Alternatively and less ideally, just adding a do_action() call at the end
 of the native Profile Picture section would at least allow for the new
 controls to be added in the correct location on the page.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37899>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list