Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace all remaining $bp global touches with buddypress().

All existing tests continue to pass as normal. I will further manually scrutinize each replacement to ensure correctness.

Fixes #5138. Any stragglers or updates will reference this ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-actions.php

    r9466 r9471  
    9696 */
    9797function groups_action_create_group() {
    98     global $bp;
    9998
    10099    // If we're not at domain.org/groups/create/ then return false
     
    109108        bp_core_redirect( bp_get_groups_directory_permalink() );
    110109    }
     110
     111    $bp = buddypress();
    111112
    112113    // Make sure creation steps are in the right order
     
    361362 */
    362363function groups_action_join_group() {
    363     global $bp;
    364364
    365365    if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( 'join' ) )
     
    369369    if ( !check_admin_referer( 'groups_join_group' ) )
    370370        return false;
     371
     372    $bp = buddypress();
    371373
    372374    // Skip if banned or already a member
     
    457459 */
    458460function groups_action_sort_creation_steps() {
    459     global $bp;
    460461
    461462    if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) )
    462463        return false;
     464
     465    $bp = buddypress();
    463466
    464467    if ( !is_array( $bp->groups->group_creation_steps ) )
Note: See TracChangeset for help on using the changeset viewer.