Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 10:10:47 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in Activity component. See #3989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r5623 r5684  
    2424 * Registers the Activity component admin screen
    2525 *
    26  * @global object $bp Global BuddyPress settings object
    2726 * @since 1.6
    2827 */
    2928function bp_activity_add_admin_menu() {
    30         global $bp;
    3129
    3230        if ( ! bp_current_user_can( 'bp_moderate' ) )
     
    906904         * Constructor
    907905         *
    908          * @global $bp BuddyPress global settings
    909906         * @since 1.6
    910907         */
    911908        public function __construct() {
    912                 global $bp;
    913909
    914910                // Define singular and plural labels, as well as whether we support AJAX.
Note: See TracChangeset for help on using the changeset viewer.