Skip to:
Content

BuddyPress.org

Ticket #2710: 2710-1.patch

File 2710-1.patch, 1.4 KB (added by boonebgorges, 14 years ago)
  • bp-core/bp-core-catchuri.php

     
    132132
    133133                unset( $uri_chunks );
    134134        }
    135 
     135       
     136        // Search doesn't have an associated page, so we check is separately
     137        if ( in_array( BP_SEARCH_SLUG, $bp_uri ) )
     138                $matches[] = 1;
     139               
    136140        // This is not a BuddyPress page, so just return.
    137141        if ( !isset( $matches ) )
    138142                return false;
  • bp-core.php

     
    2222if ( !defined( 'CUSTOM_USER_META_TABLE' ) )
    2323        define( 'CUSTOM_USER_META_TABLE', $wpdb->base_prefix . 'usermeta' );
    2424
     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' );
     28
    2529/* Load the files containing functions that we globally will need. */
    2630require ( BP_PLUGIN_DIR . '/bp-core/bp-core-catchuri.php' );
    2731require ( BP_PLUGIN_DIR . '/bp-core/bp-core-classes.php' );
     
    202206
    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' );
    210211