Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 09:38:45 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Remove a bunch of unneeded globals and clean up some code in Core component. See #3989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r5659 r5683  
    183183 */
    184184function bp_core_get_directory_pages() {
    185     global $wpdb, $bp;
     185    global $wpdb;
    186186
    187187    // Set pages as standard class
     
    262262 */
    263263function bp_core_get_root_domain() {
    264     global $wpdb;
    265264
    266265    $domain = get_home_url( bp_get_root_blog_id() );
     
    494493 */
    495494function bp_core_record_activity() {
    496     global $bp;
    497495
    498496    if ( !is_user_logged_in() )
     
    543541 * @package BuddyPress Core
    544542 *
    545  * @global $bp $bp
    546543 * @global object $current_site
    547544 * @return string
    548545 */
    549546function bp_core_get_site_path() {
    550     global $bp, $current_site;
     547    global $current_site;
    551548
    552549    if ( is_multisite() )
     
    624621 *
    625622 * @package BuddyPress Core
    626  * @global object $bp Global BuddyPress settings object
    627623 * @param string $slug The slug to redirect to for searching.
    628624 */
    629625function bp_core_action_search_site( $slug = '' ) {
    630     global $bp;
    631626
    632627    if ( !bp_is_current_component( bp_get_search_slug() ) )
     
    11561151 */
    11571152function bp_do_404( $redirect = 'remove_canonical_direct' ) {
    1158     global $bp, $wp_query;
     1153    global $wp_query;
    11591154
    11601155    do_action( 'bp_do_404', $redirect );
Note: See TracChangeset for help on using the changeset viewer.