[buddypress-trac] [BuddyPress Trac] #6612: xprofile_avatar_uploaded action hook

buddypress-trac noreply at wordpress.org
Thu Sep 24 10:28:22 UTC 2015


#6612: xprofile_avatar_uploaded action hook
------------------------------+--------------------
 Reporter:  landwire          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  2.3.4
Component:  API - Avatars     |     Version:  2.3.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by imath):

 In [changeset:"10134"]:
 {{{
 #!CommitTicketReference repository="" revision="10134"
 Make sure the `xprofile_avatar_uploaded` action is fired once the avatar
 of the user is set.

 In 2.3.0, we introduced a new UI to manage avatar. It now uses Ajax to
 upload and set the avatar. Unfortunately a confusion was made about the
 `xprofile_avatar_uploaded` action. It was firing immediately after the
 avatar was uploaded but before it has been set using the cropping tool.

 This commit is:
 - making sure the action is fired at the right time
 - adding new parameters to the action to inform about the User ID and the
 way the avatar was set ("crop" or "camera")
 - making sure an activity will be generated if the avatar was set within
 the wp-admin/extended-profile.

 Props r-a-y, landwire

 See #6612 (branch 2.3)
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6612#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list