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-activity/bp-activity-template.php

    r9411 r9471  
    165165     */
    166166    function __construct( $args ) {
    167         global $bp;
     167        $bp = buddypress();
    168168
    169169        // Backward compatibility with old method of passing arguments
     
    427427 *
    428428 * @global object $activities_template {@link BP_Activity_Template}
    429  * @global object $bp BuddyPress global settings.
    430429 * @uses groups_is_user_member()
    431430 * @uses bp_current_action()
     
    13491348     * @see bp_core_fetch_avatar() For a description of the arguments.
    13501349     * @global object $activities_template {@link BP_Activity_Template}
    1351      * @global object $bp BuddyPress global settings
    13521350     * @uses bp_is_single_activity()
    13531351     * @uses wp_parse_args()
Note: See TracChangeset for help on using the changeset viewer.