Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2013 10:30:52 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Audit loader classes, and remove $bp global touches in lieu of using the buddypress() function. Also some whitespace clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r7228 r7347  
    773773 * AJAX spam an activity item or comment
    774774 *
    775  * @global BuddyPress $bp The one true BuddyPress instance
    776775 * @return mixed String on error, void on success
    777776 * @since BuddyPress (1.6)
    778777 */
    779778function bp_legacy_theme_spam_activity() {
    780     global $bp;
     779    $bp = buddypress();
    781780
    782781    // Bail if not a POST action
     
    12401239 * AJAX handler for autocomplete. Displays friends only, unless BP_MESSAGES_AUTOCOMPLETE_ALL is defined.
    12411240 *
    1242  * @global BuddyPress $bp The one true BuddyPress instance
    12431241 * @return string HTML
    12441242 * @since BuddyPress (1.2)
Note: See TracChangeset for help on using the changeset viewer.