Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/09/2011 06:54:53 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Move $bp_no_status_set global into $bp global, and more improvements to bp-core-catchuri.php.

File:
1 edited

Legend:

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

    r5309 r5320  
    831831 *
    832832 * @package BuddyPress Core
    833  * @global $bp_no_status_set Makes sure that there are no conflicts with status_header() called in bp_core_do_catch_uri()
    834  * @uses get_themes()
    835  * @return An array containing all of the themes.
     833 * @global BuddyPress $bp Makes sure that there are no conflicts with
     834 *                         status_header() called in bp_core_do_catch_uri()
     835 * @uses wp_redirect()
    836836 */
    837837function bp_core_redirect( $location, $status = 302 ) {
    838     global $bp_no_status_set;
     838    global $bp;
    839839
    840840    // Make sure we don't call status_header() in bp_core_do_catch_uri()
    841841    // as this conflicts with wp_redirect()
    842     $bp_no_status_set = true;
     842    $bp->no_status_set = true;
    843843
    844844    wp_redirect( $location, $status );
Note: See TracChangeset for help on using the changeset viewer.