Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/04/2013 01:35:38 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Move bp_core_load_admin_bar() to bp_init, and also move the function itself into bp-core-adminbar.php next to bp_core_load_admin_bar_css(). Fixes bug causing current user to be loaded out of order. Fixes #4803. See #3661.

File:
1 edited

Legend:

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

    r6724 r6762  
    5454add_action( 'bp_loaded', 'bp_include',                  4  );
    5555add_action( 'bp_loaded', 'bp_setup_widgets',            6  );
    56 add_action( 'bp_loaded', 'bp_core_load_admin_bar',      10 );
    5756add_action( 'bp_loaded', 'bp_register_theme_packages',  12 );
    5857add_action( 'bp_loaded', 'bp_register_theme_directory', 14 );
    … …  
    6362 * Attach various initialization actions to the bp_init action.
    6463 * The load order helps to execute code at the correct time.
    65  *                                                 v---Load order
     64 *                                                   v---Load order
    6665 */
    67 add_action( 'bp_init', 'bp_core_set_uri_globals',  2  );
    68 add_action( 'bp_init', 'bp_setup_globals',         4  );
    69 add_action( 'bp_init', 'bp_setup_nav',             6  );
    70 add_action( 'bp_init', 'bp_setup_title',           8  );
     66add_action( 'bp_init', 'bp_core_set_uri_globals',    2  );
     67add_action( 'bp_init', 'bp_setup_globals',           4  );
     68add_action( 'bp_init', 'bp_setup_nav',               6  );
     69add_action( 'bp_init', 'bp_setup_title',             8  );
     70add_action( 'bp_init', 'bp_core_load_admin_bar',     10 );
     71add_action( 'bp_init', 'bp_core_load_admin_bar_css', 12 );
    7172
    7273/**
Note: See TracChangeset for help on using the changeset viewer.