Skip to:
Content

BuddyPress.org

Changeset 6103


Ignore:
Timestamp:
06/15/2012 07:13:58 PM (13 years ago)
Author:
djpaul
Message:

Update bp_core_set_uri_globals() to check for DOING_AJAX when inspecting the request URI.
This is required because of 1.6's change to the javascript ajaxurl variable. The check for wp-load.php remains for backwards compatibility.

Fixes #4263, props boonebgorges

File:
1 edited

Legend:

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

    r6080 r6103  
    5353
    5454    // Ajax or not?
    55     if ( strpos( $_SERVER['REQUEST_URI'], 'wp-load.php' ) )
     55    if ( defined( 'DOING_AJAX' ) && DOING_AJAX || strpos( $_SERVER['REQUEST_URI'], 'wp-load.php' ) )
    5656        $path = bp_core_referrer();
    5757    else
Note: See TracChangeset for help on using the changeset viewer.