Skip to:
Content

BuddyPress.org


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

    r9384 r9471  
    3636 * @since BuddyPress (1.2)
    3737 *
    38  * @global object $bp BuddyPress global settings
    3938 * @uses bp_is_activity_component()
    4039 * @uses bp_is_current_action()
     
    201200 * @since BuddyPress (1.6)
    202201 *
    203  * @global object $bp BuddyPress global settings
    204202 * @param int $activity_id Activity id to be deleted. Defaults to 0.
    205203 * @return bool False on failure.
    206204 */
    207205function bp_activity_action_spam_activity( $activity_id = 0 ) {
    208     global $bp;
     206    $bp = buddypress();
    209207
    210208    // Not viewing activity, or action is not spam, or Akismet isn't present
     
    507505 * @since BuddyPress (1.0)
    508506 *
    509  * @global object $bp BuddyPress global settings
    510507 * @uses bp_is_activity_component()
    511508 * @uses bp_is_current_action()
     
    516513 */
    517514function bp_activity_action_sitewide_feed() {
    518     global $bp;
     515    $bp = buddypress();
    519516
    520517    if ( ! bp_is_activity_component() || ! bp_is_current_action( 'feed' ) || bp_is_user() || ! empty( $bp->groups->current_group ) )
     
    715712 *
    716713 * @since BuddyPress (1.6)
    717  *
    718  * @global object $bp BuddyPress global settings
    719714 */
    720715function bp_activity_setup_akismet() {
    721     global $bp;
     716    $bp = buddypress();
    722717
    723718    // Bail if Akismet is not active
Note: See TracChangeset for help on using the changeset viewer.