[buddypress-trac] [BuddyPress] #5150: Avatar uploaded successfully template notice persists
buddypress-trac
noreply at wordpress.org
Sun Aug 25 18:22:22 UTC 2013
#5150: Avatar uploaded successfully template notice persists
--------------------------+------------------------------
Reporter: henrywright | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.8.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by henrywright):
Actually why does the member need to stay on the change avatar page after
a successful avatar upload? Would it be better to redirect them to their
profile which will display their new avatar - that in itself would serve
as confirmation the upload was successful. I have opted to use this:
{{{
function bp_redirect_after_avatar_upload() {
bp_core_redirect( bp_loggedin_user_domain() );
}
add_action( 'xprofile_avatar_uploaded', 'bp_redirect_after_avatar_upload'
);
}}}
I'd be grateful for your thoughts...
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5150#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list