Changeset 3627 for trunk/bp-forums.php
- Timestamp:
- 12/30/2010 10:13:05 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r3592 r3627 5 5 define( 'BP_FORUMS_PARENT_FORUM_ID', 1 ); 6 6 7 if ( !defined( 'BP_FORUMS_SLUG' ) )8 define( 'BP_FORUMS_SLUG', 'forums' );9 10 7 if ( !defined( 'BB_PATH' ) ) 11 8 require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-bbpress.php' ); … … 14 11 require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-filters.php' ); 15 12 13 /** 14 * Puts important forums component data into the $bp global for later use. 15 * 16 * @package BuddyPress Forums 17 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 18 */ 16 19 function bp_forums_setup() { 17 20 global $bp; 18 19 /* For internal identification */ 21 22 if ( !defined( 'BP_FORUMS_SLUG' ) ) 23 define ( 'BP_FORUMS_SLUG', $bp->pages->forums->slug ); 24 25 // For internal identification 20 26 $bp->forums->id = 'forums'; 21 27 … … 26 32 $bp->forums->bbconfig = $bp->site_options['bb-config-location']; 27 33 28 / * Register this in the active components array */34 // Register this in the active components array 29 35 $bp->active_components[$bp->forums->slug] = $bp->forums->id; 36 37 // The default text for the forums directory search box 38 $bp->default_search_strings[$bp->forums->slug] = __( 'Search Forum Topics...', 'buddypress' ); 30 39 31 40 do_action( 'bp_forums_setup' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)