#416 closed defect (bug) (fixed)
$_POST returns nothing after the groups_custom_group_fields_editable
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | critical | |
| Severity: | Version: | ||
| Component: | Keywords: | ||
| Cc: |
Description
here is my function:
function show_post() {
$text = print_r ($_POST,true);
echo $text;
}
add_action( 'groups_custom_group_fields_editable', 'show_post' );
the $text return me Array ( )
so i think that there is something that make $_POST as null before!
Please remove that!
Change History (3)
Note: See
TracTickets for help on using
tickets.
here it's the bug for me
bp-groups.php
617 if ( isset( $_POST['save'] ) ) { 618 if ( !groups_edit_base_group_details( $_POST['group-id'], $_POST['group-name'], $_POST['group-desc'], $_POST['group-news'], (int)$_POST['group-notify-members'] ) ) { 619 bp_core_add_message( __( 'There was an error updating group details, please try again.', 'buddypress' ), 'error' ); 620 } else { 621 bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) ); 622 } 623 bp_core_redirect( site_url() . '/' . $bp['current_component'] . '/' . $bp['current_item'] . '/admin/edit-details' ); 624 } 625 626 do_action( 'groups_screen_group_admin_edit_details', $group_obj->id );the $_POST is = NULL because it redirect on line 623 and it can't load $_POST because groups_screen_group_admin_edit_details because it is after the redirect