Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (9 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-blogs/bp-blogs-activity.php

    r9369 r9471  
    1616 * @since BuddyPress (1.0.0)
    1717 *
    18  * @global object $bp The BuddyPress global settings object.
    19  *
    2018 * @return bool|null Returns false if activity component is not active.
    2119 */
    2220function bp_blogs_register_activity_actions() {
    23     global $bp;
     21    $bp = buddypress();
    2422
    2523    // Bail if activity is not active
     
    322320 *
    323321 * @see bp_activity_add() for description of parameters.
    324  * @global object $bp The BuddyPress global settings object.
    325322 *
    326323 * @param array $args {
     
    333330 */
    334331function bp_blogs_record_activity( $args = '' ) {
    335     global $bp;
    336332
    337333    // Bail if activity is not active
     
    339335        return false;
    340336    }
     337
     338    $bp = buddypress();
    341339
    342340    $defaults = array(
Note: See TracChangeset for help on using the changeset viewer.