Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (11 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-xprofile/bp-xprofile-template.php

    r9351 r9471  
    370370}
    371371    function bp_get_the_profile_group_edit_form_action() {
    372         global $bp, $group;
     372        global $group;
     373
     374        $bp = buddypress();
    373375
    374376        /**
     
    845847 */
    846848function bp_profile_group_tabs() {
    847     global $bp, $group_name;
    848 
     849    global $group_name;
     850
     851    $bp     = buddypress();
    849852    $groups = bp_profile_get_field_groups();
    850853
     
    967970}
    968971    function bp_get_avatar_delete_link() {
    969         global $bp;
     972        $bp = buddypress();
    970973
    971974        /**
     
    980983
    981984function bp_edit_profile_button() {
    982     global $bp;
     985    $bp = buddypress();
    983986
    984987    bp_button( array (
Note: See TracChangeset for help on using the changeset viewer.