Skip to:
Content

BuddyPress.org

Changeset 3627 for trunk/bp-groups.php


Ignore:
Timestamp:
12/30/2010 10:13:05 PM (14 years ago)
Author:
boonebgorges
Message:

Replaces generic 'Search anything' default directory search text with component-specific text. Fixes #1915. Fixes ->forums->slug so that it is properly set in the bp_pages way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r3620 r3627  
    55require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-filters.php' );
    66
     7/**
     8 * Puts important groups component data into the $bp global for later use.
     9 *
     10 * @package BuddyPress Groups
     11 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals()
     12 */
    713function groups_setup_globals() {
    8     global $bp, $wpdb;
     14    global $bp;
    915
    1016    if ( !defined( 'BP_GROUPS_SLUG' ) )
     
    4046    // Auto join group when non group member performs group activity
    4147    $bp->groups->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ? false : true;
     48
     49    // The default text for the groups directory search box
     50        $bp->default_search_strings[$bp->groups->slug] = __( 'Search Groups...', 'buddypress' );
    4251
    4352    do_action( 'groups_setup_globals' );
Note: See TracChangeset for help on using the changeset viewer.