Skip to:
Content

BuddyPress.org

Changeset 3105


Ignore:
Timestamp:
06/28/2010 08:40:31 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Adjust load orders for #2325

Location:
branches/1.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r3100 r3105  
    11931193    do_action( 'bp_register_activity_actions' );
    11941194}
    1195 add_action( 'bp_init', 'bp_register_activity_actions' );
     1195add_action( 'bp_loaded', 'bp_register_activity_actions', 8 );
    11961196
    11971197
  • branches/1.2/bp-core.php

    r3103 r3105  
    19541954        load_textdomain( 'buddypress', $mofile );
    19551955}
    1956 add_action ( 'bp_init', 'bp_core_load_buddypress_textdomain', 2 );
     1956add_action ( 'bp_loaded', 'bp_core_load_buddypress_textdomain', 2 );
    19571957
    19581958function bp_core_add_ajax_hook() {
     
    20522052 * hook in to.
    20532053 */
     2054 
     2055/**
     2056 * bp_include()
     2057 *
     2058 * Allow plugins to include their files ahead of core filters
     2059 */
     2060function bp_include() {
     2061    do_action( 'bp_include' );
     2062}
     2063add_action( 'bp_loaded', 'bp_include', 2 );
     2064
     2065/**
     2066 * bp_setup_root_components()
     2067 *
     2068 * Allow core components and dependent plugins to set root components
     2069 */
     2070function bp_setup_root_components() {
     2071    do_action( 'bp_setup_root_components' );
     2072}
     2073add_action( 'bp_loaded', 'bp_setup_root_components', 2 );
     2074
     2075/**
     2076 * bp_setup_globals()
     2077 *
     2078 * Allow core components and dependent plugins to set globals
     2079 */
     2080function bp_setup_globals() {
     2081    do_action( 'bp_setup_globals' );
     2082}
     2083add_action( 'bp_loaded', 'bp_setup_globals', 6 );
     2084
     2085/**
     2086 * bp_setup_nav()
     2087 *
     2088 * Allow core components and dependent plugins to set their nav
     2089 */
     2090function bp_setup_nav() {
     2091    do_action( 'bp_setup_nav' );
     2092}
     2093add_action( 'bp_loaded', 'bp_setup_nav', 8 );
     2094
     2095/**
     2096 * bp_setup_widgets()
     2097 *
     2098 * Allow core components and dependent plugins to register widgets
     2099 */
     2100function bp_setup_widgets() {
     2101    do_action( 'bp_register_widgets' );
     2102}
     2103add_action( 'bp_loaded', 'bp_setup_widgets', 8 );
    20542104
    20552105/**
     
    20612111    do_action( 'bp_init' );
    20622112}
    2063 add_action( 'bp_loaded', 'bp_init', 1 );
    2064 
    2065 /**
    2066  * bp_setup_root_components()
    2067  *
    2068  * Allow core components and dependent plugins to set root components
    2069  */
    2070 function bp_setup_root_components() {
    2071     do_action( 'bp_setup_root_components' );
    2072 }
    2073 add_action( 'bp_loaded', 'bp_setup_root_components', 2 );
    2074 
    2075 /**
    2076  * bp_setup_globals()
    2077  *
    2078  * Allow core components and dependent plugins to set globals
    2079  */
    2080 function bp_setup_globals() {
    2081     do_action( 'bp_setup_globals' );
    2082 }
    2083 add_action( 'bp_loaded', 'bp_setup_globals', 6 );
    2084 
    2085 /**
    2086  * bp_setup_nav()
    2087  *
    2088  * Allow core components and dependent plugins to set their nav
    2089  */
    2090 function bp_setup_nav() {
    2091     do_action( 'bp_setup_nav' );
    2092 }
    2093 add_action( 'bp_loaded', 'bp_setup_nav', 10 );
    2094 
    2095 /**
    2096  * bp_setup_widgets()
    2097  *
    2098  * Allow core components and dependent plugins to register widgets
    2099  */
    2100 function bp_setup_widgets() {
    2101     do_action( 'bp_register_widgets' );
    2102 }
    2103 add_action( 'bp_loaded', 'bp_setup_widgets', 10 );
    2104 
     2113add_action( 'bp_loaded', 'bp_init' );
    21052114
    21062115/********************************************************************************
  • branches/1.2/bp-core/bp-core-avatars.php

    r3088 r3105  
    4545        define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-core/images/mystery-man-50.jpg' );
    4646}
    47 add_action( 'bp_init', 'bp_core_set_avatar_constants' );
     47add_action( 'bp_loaded', 'bp_core_set_avatar_constants', 8 );
    4848
    4949/**
  • branches/1.2/bp-loader.php

    r3102 r3105  
    6262    do_action( 'bp_loaded' );
    6363}
    64 add_action( 'plugins_loaded', 'bp_loaded' );
     64add_action( 'plugins_loaded', 'bp_loaded', 20 );
    6565
    6666/* Activation Function */
Note: See TracChangeset for help on using the changeset viewer.