Skip to:
Content

BuddyPress.org

Changeset 2794


Ignore:
Timestamp:
03/01/2010 12:40:17 PM (12 years ago)
Author:
apeatling
Message:

Reverting function priority changes, these will be moved to the trunk

Location:
branches/1.2
Files:
13 edited

Legend:

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

    r2788 r2794  
    8989    do_action( 'bp_activity_setup_globals' );
    9090}
    91 add_action( 'bp_setup_globals', 'bp_activity_setup_globals', 9 );
     91add_action( 'bp_setup_globals', 'bp_activity_setup_globals' );
    9292
    9393function bp_activity_check_installed() {
     
    103103    bp_core_add_root_component( BP_ACTIVITY_SLUG );
    104104}
    105 add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component', 9 );
     105add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component' );
    106106
    107107function bp_activity_setup_nav() {
     
    138138    do_action( 'bp_activity_setup_nav' );
    139139}
    140 add_action( 'bp_setup_nav', 'bp_activity_setup_nav', 9 );
     140add_action( 'bp_setup_nav', 'bp_activity_setup_nav' );
    141141
    142142function bp_activity_directory_activity_setup() {
  • branches/1.2/bp-blogs.php

    r2788 r2794  
    105105    do_action( 'bp_blogs_setup_globals' );
    106106}
    107 add_action( 'bp_setup_globals', 'bp_blogs_setup_globals', 9 );
     107add_action( 'bp_setup_globals', 'bp_blogs_setup_globals' );
    108108
    109109function bp_blogs_setup_root_component() {
     
    111111    bp_core_add_root_component( BP_BLOGS_SLUG );
    112112}
    113 add_action( 'bp_setup_root_components', 'bp_blogs_setup_root_component', 9 );
     113add_action( 'bp_setup_root_components', 'bp_blogs_setup_root_component' );
    114114
    115115/**
     
    150150    do_action( 'bp_blogs_setup_nav' );
    151151}
    152 add_action( 'bp_setup_nav', 'bp_blogs_setup_nav', 9 );
     152add_action( 'bp_setup_nav', 'bp_blogs_setup_nav' );
    153153
    154154function bp_blogs_directory_blogs_setup() {
  • branches/1.2/bp-blogs/bp-blogs-widgets.php

    r2788 r2794  
    1212        add_action('widgets_init', create_function('', 'return register_widget("BP_Blogs_Recent_Posts_Widget");') );
    1313}
    14 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets', 9 );
     14add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );
    1515
    1616class BP_Blogs_Recent_Posts_Widget extends WP_Widget {
  • branches/1.2/bp-core.php

    r2789 r2794  
    181181    do_action( 'bp_core_setup_globals' );
    182182}
    183 add_action( 'bp_setup_globals', 'bp_core_setup_globals', 9 );
     183add_action( 'bp_setup_globals', 'bp_core_setup_globals' );
    184184
    185185/**
     
    374374    }
    375375}
    376 add_action( 'bp_setup_nav', 'bp_core_setup_nav', 9 );
     376add_action( 'bp_setup_nav', 'bp_core_setup_nav' );
    377377
    378378/********************************************************************************
     
    21262126    do_action( 'bp_setup_globals' );
    21272127}
    2128 add_action( 'bp_init', 'bp_setup_globals', 50 );
     2128add_action( 'plugins_loaded', 'bp_setup_globals', 5 );
    21292129
    21302130/* Allow core components and dependent plugins to set root components */
     
    21322132    do_action( 'bp_setup_root_components' );
    21332133}
    2134 add_action( 'bp_init', 'bp_setup_root_components', 20 );
     2134add_action( 'plugins_loaded', 'bp_setup_root_components', 2 );
    21352135
    21362136/* Allow core components and dependent plugins to set their nav */
     
    21382138    do_action( 'bp_setup_nav' );
    21392139}
    2140 add_action( 'bp_init', 'bp_setup_nav', 60 );
     2140add_action( 'plugins_loaded', 'bp_setup_nav' );
    21412141
    21422142/* Allow core components and dependent plugins to register widgets */
     
    21442144    do_action( 'bp_register_widgets' );
    21452145}
    2146 add_action( 'bp_init', 'bp_setup_widgets', 70 );
     2146add_action( 'plugins_loaded', 'bp_setup_widgets' );
    21472147
    21482148
  • branches/1.2/bp-core/bp-core-avatars.php

    r2788 r2794  
    4545        define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' );
    4646}
    47 add_action( 'bp_init', 'bp_core_set_avatar_constants', 9 );
     47add_action( 'bp_init', 'bp_core_set_avatar_constants' );
    4848
    4949function bp_core_fetch_avatar( $args = '' ) {
  • branches/1.2/bp-core/bp-core-widgets.php

    r2788 r2794  
    77    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Recently_Active_Widget");') );
    88}
    9 add_action( 'bp_register_widgets', 'bp_core_register_widgets', 9 );
     9add_action( 'bp_register_widgets', 'bp_core_register_widgets' );
    1010
    1111/*** MEMBERS WIDGET *****************/
     
    2222        global $bp;
    2323
    24         extract( $args );
     24        extract( $args );
    2525
    2626        echo $before_widget;
    2727        echo $before_title
    28             . $widget_name
    29             . $after_title; ?>
     28           . $widget_name
     29           . $after_title; ?>
    3030
    3131        <?php if ( bp_has_members( 'user_id=0&type=newest&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?>
     
    9494        global $bp;
    9595
    96         extract( $args );
     96        extract( $args );
    9797
    9898        echo $before_widget;
    9999        echo $before_title
    100             . $widget_name
    101             . $after_title; ?>
     100           . $widget_name
     101           . $after_title; ?>
    102102
    103103        <?php if ( bp_has_members( 'user_id=0&type=online&per_page=' . $instance['max_members'] . '&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?>
     
    148148        global $bp;
    149149
    150         extract( $args );
     150        extract( $args );
    151151
    152152        echo $before_widget;
    153153        echo $before_title
    154             . $widget_name
    155             . $after_title; ?>
     154           . $widget_name
     155           . $after_title; ?>
    156156
    157157        <?php if ( bp_has_members( 'user_id=0&type=active&per_page=' . $instance['max_members'] . '&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?>
  • branches/1.2/bp-forums.php

    r2788 r2794  
    2929    do_action( 'bp_forums_setup' );
    3030}
    31 add_action( 'bp_setup_globals', 'bp_forums_setup', 9 );
     31add_action( 'bp_setup_globals', 'bp_forums_setup' );
    3232
    3333function bp_forums_is_installed_correctly() {
     
    4444    bp_core_add_root_component( BP_FORUMS_SLUG );
    4545}
    46 add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component', 9 );
     46add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component' );
    4747
    4848function bp_forums_directory_forums_setup() {
  • branches/1.2/bp-friends.php

    r2788 r2794  
    4848    do_action( 'friends_setup_globals' );
    4949}
    50 add_action( 'bp_setup_globals', 'friends_setup_globals', 9 );
     50add_action( 'bp_setup_globals', 'friends_setup_globals' );
    5151
    5252function friends_check_installed() {
     
    8585    do_action( 'friends_setup_nav' );
    8686}
    87 add_action( 'bp_setup_nav', 'friends_setup_nav', 9 );
     87add_action( 'bp_setup_nav', 'friends_setup_nav' );
    8888
    8989/********************************************************************************
  • branches/1.2/bp-groups.php

    r2788 r2794  
    9999    do_action( 'groups_setup_globals' );
    100100}
    101 add_action( 'bp_setup_globals', 'groups_setup_globals', 9 );
     101add_action( 'bp_setup_globals', 'groups_setup_globals' );
    102102
    103103function groups_setup_root_component() {
     
    105105    bp_core_add_root_component( BP_GROUPS_SLUG );
    106106}
    107 add_action( 'bp_setup_root_components', 'groups_setup_root_component', 9 );
     107add_action( 'bp_setup_root_components', 'groups_setup_root_component' );
    108108
    109109function groups_check_installed() {
     
    218218    do_action( 'groups_setup_nav', $bp->groups->current_group->user_has_access );
    219219}
    220 add_action( 'bp_setup_nav', 'groups_setup_nav', 9 );
     220add_action( 'bp_setup_nav', 'groups_setup_nav' );
    221221
    222222function groups_directory_groups_setup() {
  • branches/1.2/bp-groups/bp-groups-classes.php

    r2788 r2794  
    11641164        return false;
    11651165
    1166     /* Register the group extension on the bp_init action so we have access to all plugins */
     1166    /* Register the group extension on the plugins_loaded action so we have access to all plugins */
    11671167    add_action( 'bp_init', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "wp", array( &$extension, "_register" ), 2 );' ), 11 );
    11681168}
  • branches/1.2/bp-groups/bp-groups-widgets.php

    r2788 r2794  
    55    add_action('widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");') );
    66}
    7 add_action( 'bp_register_widgets', 'groups_register_widgets', 9 );
     7add_action( 'bp_register_widgets', 'groups_register_widgets' );
    88
    99/*** GROUPS WIDGET *****************/
  • branches/1.2/bp-messages.php

    r2788 r2794  
    8383    do_action( 'messages_setup_globals' );
    8484}
    85 add_action( 'bp_setup_globals', 'messages_setup_globals', 9 );
     85add_action( 'bp_setup_globals', 'messages_setup_globals' );
    8686
    8787function messages_check_installed() {
     
    129129    do_action( 'messages_setup_nav' );
    130130}
    131 add_action( 'bp_setup_nav', 'messages_setup_nav', 9 );
     131add_action( 'bp_setup_nav', 'messages_setup_nav' );
    132132
    133133/********************************************************************************
  • branches/1.2/bp-xprofile.php

    r2788 r2794  
    128128    do_action( 'xprofile_setup_globals' );
    129129}
    130 add_action( 'bp_setup_globals', 'xprofile_setup_globals', 9 );
     130add_action( 'bp_setup_globals', 'xprofile_setup_globals' );
    131131
    132132/**
     
    197197    do_action( 'xprofile_setup_nav' );
    198198}
    199 add_action( 'bp_setup_nav', 'xprofile_setup_nav', 9 );
     199add_action( 'bp_setup_nav', 'xprofile_setup_nav' );
    200200
    201201/**
Note: See TracChangeset for help on using the changeset viewer.