[buddypress-trac] [BuddyPress Trac] #6612: xprofile_avatar_uploaded action hook
buddypress-trac
noreply at wordpress.org
Thu Sep 24 10:36:16 UTC 2015
#6612: xprofile_avatar_uploaded action hook
------------------------------+---------------------
Reporter: landwire | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.3.4
Component: API - Avatars | Version: 2.3.0
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Changes (by imath):
* owner: => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"10135"]:
{{{
#!CommitTicketReference repository="" revision="10135"
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
Fixes #6612 (trunk)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6612#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list