[buddypress-trac] [BuddyPress Trac] #7664: Redirect back to the edit screen to display the updates and message
buddypress-trac
noreply at wordpress.org
Mon Jan 22 17:38:00 UTC 2018
#7664: Redirect back to the edit screen to display the updates and message
--------------------------+-----------------------------
Reporter: carlo.tafuro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 2.9.2
Severity: normal | Keywords:
--------------------------+-----------------------------
Hello,
after the line:
{{{
bp_core_add_message( __( 'Please make sure you fill in all required fields
in this profile field group before saving.', 'buddypress' ), 'error' );
}}}
in bp-xprofile/bp-xprofile-screens.php
(see [https://buddypress.trac.wordpress.org/browser/branches/2.9/src/bp-
xprofile/bp-xprofile-screens.php#L100] )
is missing:
{{{
// Redirect back to the edit screen to display the updates and message.
bp_core_redirect( trailingslashit( bp_displayed_user_domain() .
bp_get_profile_slug() . '/edit/group/' . bp_action_variable( 1 ) ) );
}}}
like at the end of the same function xprofile_screen_edit_profile()
(see [https://buddypress.trac.wordpress.org/browser/branches/2.9/src/bp-
xprofile/bp-xprofile-screens.php#L171] )
without that line the error message is displayed on the next page.
Thanks
Carlo
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7664>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list