Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/30/2012 12:21:24 PM (12 years ago)
Author:
djpaul
Message:

Reinstate $bp_unfiltered_uri global for backpat. Fixes #4516 (for 1.6 branch)

The $bp_unfiltered_uri global was removed in BP 1.6. This can cause backpat issues with plugins and customisations from old versions of BuddyPress. If you need to change this array, you should use buddypress()->unfiltered_uri instead of this global.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/bp-core/bp-core-catchuri.php

    r6252 r6473  
    136136    // Keep the unfiltered URI safe
    137137    $bp->unfiltered_uri = $bp_uri;
     138
     139    // Don't use $bp_unfiltered_uri, this is only for backpat with old plugins. Use $bp->unfiltered_uri.
     140    $GLOBALS['bp_unfiltered_uri'] = &$bp->unfiltered_uri;
    138141
    139142    // Get slugs of pages into array
Note: See TracChangeset for help on using the changeset viewer.