Changeset 6406 for trunk/bp-forums/bp-forums-screens.php
- Timestamp:
- 10/14/2012 05:57:11 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-screens.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-screens.php
r6342 r6406 4 4 5 5 function bp_forums_directory_forums_setup() { 6 global $bp; 6 7 // Get BuddyPress once 8 $bp = buddypress(); 7 9 8 10 if ( bp_is_forums_component() && ( !bp_current_action() || ( 'tag' == bp_current_action() && bp_action_variables() ) ) && !bp_current_item() ) { … … 72 74 73 75 function bp_member_forums_screen_topics() { 74 global $bp;75 76 76 do_action( 'bp_member_forums_screen_topics' ); 77 77 … … 80 80 81 81 function bp_member_forums_screen_replies() { 82 global $bp;83 84 82 do_action( 'bp_member_forums_screen_replies' ); 85 83 … … 95 93 */ 96 94 function bp_member_forums_screen_favorites() { 97 global $bp;98 99 95 do_action( 'bp_member_forums_screen_favorites' ); 100 96 … … 103 99 104 100 function bp_forums_screen_single_forum() { 105 global $bp;106 101 107 102 if ( !bp_is_forums_component() || !bp_is_current_action( 'forum' ) || !bp_action_variable( 0 ) ) … … 115 110 116 111 function bp_forums_screen_single_topic() { 117 global $bp;118 112 119 113 if ( !bp_is_forums_component() || !bp_is_current_action( 'topic' ) || !bp_action_variable( 0 ) )
Note: See TracChangeset
for help on using the changeset viewer.