Skip to:
Content

BuddyPress.org

Changeset 527 for trunk/bp-wire.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-wire.php

    r518 r527  
    9696       
    9797        if ( !strpos( $_SERVER['HTTP_REFERER'], $bp['wire']['slug'] ) ) {
    98                 wp_redirect( $bp['current_domain'] );
     98                bp_core_redirect( $bp['current_domain'] );
    9999        } else {
    100                 wp_redirect( $bp['current_domain']. $bp['wire']['slug'] );
     100                bp_core_redirect( $bp['current_domain']. $bp['wire']['slug'] );
    101101        }
    102102}
    … …  
    118118       
    119119        if ( !strpos( $_SERVER['HTTP_REFERER'], $bp['wire']['slug'] ) ) {
    120                 wp_redirect( $bp['current_domain'] );
     120                bp_core_redirect( $bp['current_domain'] );
    121121        } else {
    122                 wp_redirect( $bp['current_domain']. $bp['wire']['slug'] );
     122                bp_core_redirect( $bp['current_domain']. $bp['wire']['slug'] );
    123123        }
    124124}
Note: See TracChangeset for help on using the changeset viewer.