Skip to:
Content

BuddyPress.org

Changeset 5464


Ignore:
Timestamp:
12/08/2011 03:38:31 AM (12 years ago)
Author:
boonebgorges
Message:

In bp_core_redirect(), make sure we don't attempt to redirect to an empty string, to avoid problems with certain Firefox setups. Fixes #2032

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r5429 r5464  
    916916function bp_core_redirect( $location, $status = 302 ) {
    917917    global $bp;
     918
     919    // On some setups, passing the value of wp_get_referer() may result in an empty value for
     920    // $location, which results in an error. Ensure that we have a valid URL.
     921    if ( empty( $location ) ) {
     922        $location = bp_get_root_domain();
     923    }
    918924
    919925    // Make sure we don't call status_header() in bp_core_do_catch_uri()
Note: See TracChangeset for help on using the changeset viewer.