Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/14/2012 05:57:11 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove $bp global references from forums screens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-screens.php

    r6342 r6406  
    44
    55function bp_forums_directory_forums_setup() {
    6     global $bp;
     6
     7    // Get BuddyPress once
     8    $bp = buddypress();
    79
    810    if ( bp_is_forums_component() && ( !bp_current_action() || ( 'tag' == bp_current_action() && bp_action_variables() ) ) && !bp_current_item() ) {
     
    7274
    7375function bp_member_forums_screen_topics() {
    74     global $bp;
    75 
    7676    do_action( 'bp_member_forums_screen_topics' );
    7777
     
    8080
    8181function bp_member_forums_screen_replies() {
    82     global $bp;
    83 
    8482    do_action( 'bp_member_forums_screen_replies' );
    8583
     
    9593 */
    9694function bp_member_forums_screen_favorites() {
    97     global $bp;
    98 
    9995    do_action( 'bp_member_forums_screen_favorites' );
    10096
     
    10399
    104100function bp_forums_screen_single_forum() {
    105     global $bp;
    106101
    107102    if ( !bp_is_forums_component() || !bp_is_current_action( 'forum' ) || !bp_action_variable( 0 ) )
     
    115110
    116111function bp_forums_screen_single_topic() {
    117     global $bp;
    118112
    119113    if ( !bp_is_forums_component() || !bp_is_current_action( 'topic' ) || !bp_action_variable( 0 ) )
Note: See TracChangeset for help on using the changeset viewer.