Skip to:
Content

BuddyPress.org

Changeset 1250 for trunk/bp-xprofile.php


Ignore:
Timestamp:
03/25/2009 04:01:43 PM (15 years ago)
Author:
apeatling
Message:

Removed blogs, groups and members directory from the home theme into the BuddyPress member theme. The directories now have their own templates and theme based CSS and provide much easier editing.

Moved the $bp global setup to a higher priority action - from the 'wp' action to the 'plugins_loaded' action. This stops occurrences where the $bp global was not defined yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1245 r1250  
    169169        $bp->profile->table_name_wire = $wpdb->base_prefix . 'bp_xprofile_wire';
    170170}
    171 add_action( 'wp', 'xprofile_setup_globals', 1 );   
     171add_action( 'plugins_loaded', 'xprofile_setup_globals', 5 );   
    172172add_action( 'admin_menu', 'xprofile_setup_globals', 1 );
    173173
     
    975975    global $bp;
    976976    wp_cache_delete( 'xprofile_fields_' . $group_id . '_' . $bp->loggedin_user->id, 'bp' );
     977    wp_cache_delete( 'bp_user_fullname_' . $bp->loggedin_user->id, 'bp' );
    977978    wp_cache_delete( 'online_users', 'bp' );
    978979    wp_cache_delete( 'newest_users', 'bp' );
Note: See TracChangeset for help on using the changeset viewer.