Changeset 2788
- Timestamp:
- 02/24/2010 10:18:23 PM (16 years ago)
- Location:
- branches/1.2
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity.php
r2757 r2788 89 89 do_action( 'bp_activity_setup_globals' ); 90 90 } 91 add_action( 'bp_setup_globals', 'bp_activity_setup_globals' );91 add_action( 'bp_setup_globals', 'bp_activity_setup_globals', 9 ); 92 92 93 93 function bp_activity_check_installed() { … … 103 103 bp_core_add_root_component( BP_ACTIVITY_SLUG ); 104 104 } 105 add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component' );105 add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component', 9 ); 106 106 107 107 function bp_activity_setup_nav() { … … 138 138 do_action( 'bp_activity_setup_nav' ); 139 139 } 140 add_action( 'bp_setup_nav', 'bp_activity_setup_nav' );140 add_action( 'bp_setup_nav', 'bp_activity_setup_nav', 9 ); 141 141 142 142 function bp_activity_directory_activity_setup() { -
branches/1.2/bp-blogs.php
r2769 r2788 105 105 do_action( 'bp_blogs_setup_globals' ); 106 106 } 107 add_action( 'bp_setup_globals', 'bp_blogs_setup_globals' );107 add_action( 'bp_setup_globals', 'bp_blogs_setup_globals', 9 ); 108 108 109 109 function bp_blogs_setup_root_component() { … … 111 111 bp_core_add_root_component( BP_BLOGS_SLUG ); 112 112 } 113 add_action( 'bp_setup_root_components', 'bp_blogs_setup_root_component' );113 add_action( 'bp_setup_root_components', 'bp_blogs_setup_root_component', 9 ); 114 114 115 115 /** … … 150 150 do_action( 'bp_blogs_setup_nav' ); 151 151 } 152 add_action( 'bp_setup_nav', 'bp_blogs_setup_nav' );152 add_action( 'bp_setup_nav', 'bp_blogs_setup_nav', 9 ); 153 153 154 154 function bp_blogs_directory_blogs_setup() { -
branches/1.2/bp-blogs/bp-blogs-widgets.php
r2698 r2788 12 12 add_action('widgets_init', create_function('', 'return register_widget("BP_Blogs_Recent_Posts_Widget");') ); 13 13 } 14 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );14 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets', 9 ); 15 15 16 16 class BP_Blogs_Recent_Posts_Widget extends WP_Widget { -
branches/1.2/bp-core.php
r2777 r2788 181 181 do_action( 'bp_core_setup_globals' ); 182 182 } 183 add_action( 'bp_setup_globals', 'bp_core_setup_globals' );183 add_action( 'bp_setup_globals', 'bp_core_setup_globals', 9 ); 184 184 185 185 /** … … 374 374 } 375 375 } 376 add_action( 'bp_setup_nav', 'bp_core_setup_nav' );376 add_action( 'bp_setup_nav', 'bp_core_setup_nav', 9 ); 377 377 378 378 /******************************************************************************** … … 2126 2126 do_action( 'bp_setup_globals' ); 2127 2127 } 2128 add_action( ' plugins_loaded', 'bp_setup_globals', 5 );2128 add_action( 'bp_init', 'bp_setup_globals', 5 ); 2129 2129 2130 2130 /* Allow core components and dependent plugins to set root components */ … … 2132 2132 do_action( 'bp_setup_root_components' ); 2133 2133 } 2134 add_action( ' plugins_loaded', 'bp_setup_root_components', 2 );2134 add_action( 'bp_init', 'bp_setup_root_components', 2 ); 2135 2135 2136 2136 /* Allow core components and dependent plugins to set their nav */ … … 2138 2138 do_action( 'bp_setup_nav' ); 2139 2139 } 2140 add_action( ' plugins_loaded', 'bp_setup_nav');2140 add_action( 'bp_init', 'bp_setup_nav', 6 ); 2141 2141 2142 2142 /* Allow core components and dependent plugins to register widgets */ … … 2144 2144 do_action( 'bp_register_widgets' ); 2145 2145 } 2146 add_action( ' plugins_loaded', 'bp_setup_widgets');2146 add_action( 'bp_init', 'bp_setup_widgets', 7 ); 2147 2147 2148 2148 -
branches/1.2/bp-core/bp-core-avatars.php
r2729 r2788 45 45 define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' ); 46 46 } 47 add_action( 'bp_init', 'bp_core_set_avatar_constants' );47 add_action( 'bp_init', 'bp_core_set_avatar_constants', 9 ); 48 48 49 49 function bp_core_fetch_avatar( $args = '' ) { -
branches/1.2/bp-core/bp-core-widgets.php
r2705 r2788 7 7 add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Recently_Active_Widget");') ); 8 8 } 9 add_action( 'bp_register_widgets', 'bp_core_register_widgets' );9 add_action( 'bp_register_widgets', 'bp_core_register_widgets', 9 ); 10 10 11 11 /*** MEMBERS WIDGET *****************/ … … 22 22 global $bp; 23 23 24 24 extract( $args ); 25 25 26 26 echo $before_widget; 27 27 echo $before_title 28 29 28 . $widget_name 29 . $after_title; ?> 30 30 31 31 <?php if ( bp_has_members( 'user_id=0&type=newest&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?> … … 94 94 global $bp; 95 95 96 96 extract( $args ); 97 97 98 98 echo $before_widget; 99 99 echo $before_title 100 101 100 . $widget_name 101 . $after_title; ?> 102 102 103 103 <?php if ( bp_has_members( 'user_id=0&type=online&per_page=' . $instance['max_members'] . '&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?> … … 148 148 global $bp; 149 149 150 150 extract( $args ); 151 151 152 152 echo $before_widget; 153 153 echo $before_title 154 155 154 . $widget_name 155 . $after_title; ?> 156 156 157 157 <?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
r2695 r2788 29 29 do_action( 'bp_forums_setup' ); 30 30 } 31 add_action( 'bp_setup_globals', 'bp_forums_setup' );31 add_action( 'bp_setup_globals', 'bp_forums_setup', 9 ); 32 32 33 33 function bp_forums_is_installed_correctly() { … … 44 44 bp_core_add_root_component( BP_FORUMS_SLUG ); 45 45 } 46 add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component' );46 add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component', 9 ); 47 47 48 48 function bp_forums_directory_forums_setup() { -
branches/1.2/bp-friends.php
r2742 r2788 48 48 do_action( 'friends_setup_globals' ); 49 49 } 50 add_action( 'bp_setup_globals', 'friends_setup_globals' );50 add_action( 'bp_setup_globals', 'friends_setup_globals', 9 ); 51 51 52 52 function friends_check_installed() { … … 85 85 do_action( 'friends_setup_nav' ); 86 86 } 87 add_action( 'bp_setup_nav', 'friends_setup_nav' );87 add_action( 'bp_setup_nav', 'friends_setup_nav', 9 ); 88 88 89 89 /******************************************************************************** -
branches/1.2/bp-groups.php
r2771 r2788 99 99 do_action( 'groups_setup_globals' ); 100 100 } 101 add_action( 'bp_setup_globals', 'groups_setup_globals' );101 add_action( 'bp_setup_globals', 'groups_setup_globals', 9 ); 102 102 103 103 function groups_setup_root_component() { … … 105 105 bp_core_add_root_component( BP_GROUPS_SLUG ); 106 106 } 107 add_action( 'bp_setup_root_components', 'groups_setup_root_component' );107 add_action( 'bp_setup_root_components', 'groups_setup_root_component', 9 ); 108 108 109 109 function groups_check_installed() { … … 218 218 do_action( 'groups_setup_nav', $bp->groups->current_group->user_has_access ); 219 219 } 220 add_action( 'bp_setup_nav', 'groups_setup_nav' );220 add_action( 'bp_setup_nav', 'groups_setup_nav', 9 ); 221 221 222 222 function groups_directory_groups_setup() { -
branches/1.2/bp-groups/bp-groups-classes.php
r2768 r2788 1164 1164 return false; 1165 1165 1166 /* Register the group extension on the plugins_loadedaction so we have access to all plugins */1166 /* Register the group extension on the bp_init action so we have access to all plugins */ 1167 1167 add_action( 'bp_init', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "wp", array( &$extension, "_register" ), 2 );' ), 11 ); 1168 1168 } -
branches/1.2/bp-groups/bp-groups-widgets.php
r2656 r2788 5 5 add_action('widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");') ); 6 6 } 7 add_action( 'bp_register_widgets', 'groups_register_widgets' );7 add_action( 'bp_register_widgets', 'groups_register_widgets', 9 ); 8 8 9 9 /*** GROUPS WIDGET *****************/ -
branches/1.2/bp-messages.php
r2742 r2788 83 83 do_action( 'messages_setup_globals' ); 84 84 } 85 add_action( 'bp_setup_globals', 'messages_setup_globals' );85 add_action( 'bp_setup_globals', 'messages_setup_globals', 9 ); 86 86 87 87 function messages_check_installed() { … … 129 129 do_action( 'messages_setup_nav' ); 130 130 } 131 add_action( 'bp_setup_nav', 'messages_setup_nav' );131 add_action( 'bp_setup_nav', 'messages_setup_nav', 9 ); 132 132 133 133 /******************************************************************************** -
branches/1.2/bp-xprofile.php
r2775 r2788 128 128 do_action( 'xprofile_setup_globals' ); 129 129 } 130 add_action( 'bp_setup_globals', 'xprofile_setup_globals' );130 add_action( 'bp_setup_globals', 'xprofile_setup_globals', 9 ); 131 131 132 132 /** … … 197 197 do_action( 'xprofile_setup_nav' ); 198 198 } 199 add_action( 'bp_setup_nav', 'xprofile_setup_nav' );199 add_action( 'bp_setup_nav', 'xprofile_setup_nav', 9 ); 200 200 201 201 /**
Note: See TracChangeset
for help on using the changeset viewer.