Changeset 527 for trunk/bp-groups.php
- Timestamp:
- 11/10/2008 11:22:03 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r524 r527 288 288 bp_core_add_message( __('Group invite could not be accepted', 'buddypress'), 'error' ); 289 289 } 290 wp_redirect( $_SERVER['HTTP_REFERER'] );290 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 291 291 292 292 } else if ( isset($bp['action_variables']) && in_array( 'reject', $bp['action_variables'] ) && is_numeric($bp['action_variables'][1]) ) { … … 296 296 bp_core_add_message( __('Group invite could not be rejected', 'buddypress'), 'error' ); 297 297 } 298 wp_redirect( $_SERVER['HTTP_REFERER'] );298 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 299 299 } 300 300 … … 336 336 // We're done. 337 337 if ( $create_group_step == 4 ) 338 wp_redirect( bp_group_permalink( $group_obj, false ) );338 bp_core_redirect( bp_group_permalink( $group_obj, false ) ); 339 339 340 340 if ( !$group_id = groups_manage_group( $create_group_step, $_SESSION['group_obj_id'] ) ) { 341 341 bp_core_add_message( __('There was an error saving group details. Please try again.', 'buddypress'), 'error' ); 342 wp_redirect( $bp['loggedin_domain'] . $bp['groups']['slug'] . '/create/step/' . $create_group_step );342 bp_core_redirect( $bp['loggedin_domain'] . $bp['groups']['slug'] . '/create/step/' . $create_group_step ); 343 343 } else { 344 344 $create_group_step++; … … 396 396 397 397 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp['wire']['slug'] ) ) { 398 wp_redirect( bp_group_permalink( $group_obj, false ) );398 bp_core_redirect( bp_group_permalink( $group_obj, false ) ); 399 399 } else { 400 wp_redirect( bp_group_permalink( $group_obj, false ) . '/' . $bp['wire']['slug'] );400 bp_core_redirect( bp_group_permalink( $group_obj, false ) . '/' . $bp['wire']['slug'] ); 401 401 } 402 402 … … 411 411 412 412 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp['wire']['slug'] ) ) { 413 wp_redirect( bp_group_permalink( $group_obj, false ) );413 bp_core_redirect( bp_group_permalink( $group_obj, false ) ); 414 414 } else { 415 wp_redirect( bp_group_permalink( $group_obj, false ) . '/' . $bp['wire']['slug'] );415 bp_core_redirect( bp_group_permalink( $group_obj, false ) . '/' . $bp['wire']['slug'] ); 416 416 } 417 417 … … 453 453 454 454 bp_core_add_message( __('Group invites sent.', 'buddypress') ); 455 wp_redirect( bp_group_permalink( $group_obj, false ) );455 bp_core_redirect( bp_group_permalink( $group_obj, false ) ); 456 456 } else { 457 457 // Show send invite page … … 470 470 if ( !groups_leave_group( $group_obj->id ) ) { 471 471 bp_core_add_message( __('There was an error leaving the group. Please try again.', 'buddypress'), 'error' ); 472 wp_redirect( bp_group_permalink( $group_obj, false) );472 bp_core_redirect( bp_group_permalink( $group_obj, false) ); 473 473 } else { 474 474 bp_core_add_message( __('You left the group successfully.', 'buddypress') ); 475 wp_redirect( $bp['loggedin_domain'] . $bp['groups']['slug'] );475 bp_core_redirect( $bp['loggedin_domain'] . $bp['groups']['slug'] ); 476 476 } 477 477 } else if ( isset($bp['action_variables']) && $bp['action_variables'][0] == 'no' ) { 478 wp_redirect( bp_group_permalink( $group_obj, false) );478 bp_core_redirect( bp_group_permalink( $group_obj, false) ); 479 479 } else { 480 480 // Show leave group page … … 498 498 bp_core_add_message( __( 'Your membership request was sent to the group administrator successfully. You will be notified when the group administrator responds to your request.', 'buddypress' ) ); 499 499 } 500 wp_redirect( bp_group_permalink( $group_obj, false ) );500 bp_core_redirect( bp_group_permalink( $group_obj, false ) ); 501 501 } 502 502 bp_catch_uri( 'groups/request-membership' ); … … 526 526 bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) ); 527 527 } 528 wp_redirect( $_SERVER['HTTP_REFERER'] );528 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 529 529 } 530 530 … … 557 557 } 558 558 559 wp_redirect( $_SERVER['HTTP_REFERER'] );559 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 560 560 } 561 561 … … 596 596 } 597 597 } 598 wp_redirect( $_SERVER['HTTP_REFERER'] );598 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 599 599 } 600 600 … … 618 618 } else { 619 619 bp_core_add_message( __( 'The group was deleted successfully', 'buddypress' ) ); 620 wp_redirect( site_url() . '/' . $bp['groups']['slug'] . '/' );620 bp_core_redirect( site_url() . '/' . $bp['groups']['slug'] . '/' ); 621 621 } 622 wp_redirect( $_SERVER['HTTP_REFERER'] );622 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 623 623 } else { 624 624 bp_catch_uri( 'groups/admin/delete-group' ); … … 691 691 bp_core_add_message( __('You joined the group!', 'buddypress') ); 692 692 } 693 wp_redirect( $_SERVER['HTTP_REFERER'] );693 bp_core_redirect( $_SERVER['HTTP_REFERER'] ); 694 694 } 695 695
Note: See TracChangeset
for help on using the changeset viewer.