Skip to:
Content

BuddyPress.org

Changeset 3490 for trunk/bp-core.php


Ignore:
Timestamp:
11/28/2010 03:49:00 PM (13 years ago)
Author:
boonebgorges
Message:

Modifies bp_core_set_uri_globals() to properly catch search requests. Fixes #2710

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r3479 r3490  
    2222if ( !defined( 'CUSTOM_USER_META_TABLE' ) )
    2323    define( 'CUSTOM_USER_META_TABLE', $wpdb->base_prefix . 'usermeta' );
     24
     25// The search slug has to be defined nice and early because of the way search requests are loaded
     26if ( !defined( 'BP_SEARCH_SLUG' ) )
     27        define( 'BP_SEARCH_SLUG', 'search' );
    2428
    2529/* Load the files containing functions that we globally will need. */
     
    203207    if ( !defined( 'BP_ACTIVATION_SLUG' ) )
    204208        define( 'BP_ACTIVATION_SLUG', $bp->pages->activate->slug );
    205 
    206     if ( !defined( 'BP_SEARCH_SLUG' ) )
    207         define( 'BP_SEARCH_SLUG', 'search' );
    208209}
    209210add_action( 'bp_setup_globals', 'bp_core_define_slugs' );
Note: See TracChangeset for help on using the changeset viewer.