Skip to:
Content

BuddyPress.org

Changeset 527 for trunk/bp-friends.php


Ignore:
Timestamp:
11/10/2008 11:22:03 AM (18 years ago)
Author:
apeatling
Message:

Added new function "bp_core_redirect()" to perform safe "wp_redirect()" calls. Stops bug with redirection loops and multiple friend confirmations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r525 r527  
    132132                        bp_core_add_message( __('Friendship could not be accepted', 'buddypress'), 'error' );
    133133                }
    134                 wp_redirect( $_SERVER['HTTP_REFERER'] );
     134                bp_core_redirect( $_SERVER['HTTP_REFERER'] );
    135135               
    136136        } else if ( isset($bp['action_variables']) && in_array( 'reject', $bp['action_variables'] ) && is_numeric($bp['action_variables'][1]) ) {
    … …  
    141141                        bp_core_add_message( __('Friendship could not be rejected', 'buddypress'), 'error' );
    142142                }       
    143                 wp_redirect( $_SERVER['HTTP_REFERER'] );       
     143                bp_core_redirect( $_SERVER['HTTP_REFERER'] );   
    144144        }
    145145       
Note: See TracChangeset for help on using the changeset viewer.