Changeset 2794
- Timestamp:
- 03/01/2010 12:40:17 PM (16 years ago)
- Location:
- branches/1.2
- Files:
-
- 13 edited
-
bp-activity.php (modified) (3 diffs)
-
bp-blogs.php (modified) (3 diffs)
-
bp-blogs/bp-blogs-widgets.php (modified) (1 diff)
-
bp-core.php (modified) (6 diffs)
-
bp-core/bp-core-avatars.php (modified) (1 diff)
-
bp-core/bp-core-widgets.php (modified) (4 diffs)
-
bp-forums.php (modified) (2 diffs)
-
bp-friends.php (modified) (2 diffs)
-
bp-groups.php (modified) (3 diffs)
-
bp-groups/bp-groups-classes.php (modified) (1 diff)
-
bp-groups/bp-groups-widgets.php (modified) (1 diff)
-
bp-messages.php (modified) (2 diffs)
-
bp-xprofile.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity.php
r2788 r2794 89 89 do_action( 'bp_activity_setup_globals' ); 90 90 } 91 add_action( 'bp_setup_globals', 'bp_activity_setup_globals' , 9);91 add_action( 'bp_setup_globals', 'bp_activity_setup_globals' ); 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' , 9);105 add_action( 'bp_setup_root_components', 'bp_activity_setup_root_component' ); 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' , 9);140 add_action( 'bp_setup_nav', 'bp_activity_setup_nav' ); 141 141 142 142 function bp_activity_directory_activity_setup() { -
branches/1.2/bp-blogs.php
r2788 r2794 105 105 do_action( 'bp_blogs_setup_globals' ); 106 106 } 107 add_action( 'bp_setup_globals', 'bp_blogs_setup_globals' , 9);107 add_action( 'bp_setup_globals', 'bp_blogs_setup_globals' ); 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' , 9);113 add_action( 'bp_setup_root_components', 'bp_blogs_setup_root_component' ); 114 114 115 115 /** … … 150 150 do_action( 'bp_blogs_setup_nav' ); 151 151 } 152 add_action( 'bp_setup_nav', 'bp_blogs_setup_nav' , 9);152 add_action( 'bp_setup_nav', 'bp_blogs_setup_nav' ); 153 153 154 154 function bp_blogs_directory_blogs_setup() { -
branches/1.2/bp-blogs/bp-blogs-widgets.php
r2788 r2794 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' , 9);14 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' ); 15 15 16 16 class BP_Blogs_Recent_Posts_Widget extends WP_Widget { -
branches/1.2/bp-core.php
r2789 r2794 181 181 do_action( 'bp_core_setup_globals' ); 182 182 } 183 add_action( 'bp_setup_globals', 'bp_core_setup_globals' , 9);183 add_action( 'bp_setup_globals', 'bp_core_setup_globals' ); 184 184 185 185 /** … … 374 374 } 375 375 } 376 add_action( 'bp_setup_nav', 'bp_core_setup_nav' , 9);376 add_action( 'bp_setup_nav', 'bp_core_setup_nav' ); 377 377 378 378 /******************************************************************************** … … 2126 2126 do_action( 'bp_setup_globals' ); 2127 2127 } 2128 add_action( ' bp_init', 'bp_setup_globals', 50);2128 add_action( 'plugins_loaded', '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( ' bp_init', 'bp_setup_root_components', 20);2134 add_action( 'plugins_loaded', '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( ' bp_init', 'bp_setup_nav', 60);2140 add_action( 'plugins_loaded', 'bp_setup_nav' ); 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( ' bp_init', 'bp_setup_widgets', 70);2146 add_action( 'plugins_loaded', 'bp_setup_widgets' ); 2147 2147 2148 2148 -
branches/1.2/bp-core/bp-core-avatars.php
r2788 r2794 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' , 9);47 add_action( 'bp_init', 'bp_core_set_avatar_constants' ); 48 48 49 49 function bp_core_fetch_avatar( $args = '' ) { -
branches/1.2/bp-core/bp-core-widgets.php
r2788 r2794 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);9 add_action( 'bp_register_widgets', 'bp_core_register_widgets' ); 10 10 11 11 /*** MEMBERS WIDGET *****************/ … … 22 22 global $bp; 23 23 24 extract( $args );24 extract( $args ); 25 25 26 26 echo $before_widget; 27 27 echo $before_title 28 . $widget_name29 . $after_title; ?>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 extract( $args );96 extract( $args ); 97 97 98 98 echo $before_widget; 99 99 echo $before_title 100 . $widget_name101 . $after_title; ?>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 extract( $args );150 extract( $args ); 151 151 152 152 echo $before_widget; 153 153 echo $before_title 154 . $widget_name155 . $after_title; ?>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
r2788 r2794 29 29 do_action( 'bp_forums_setup' ); 30 30 } 31 add_action( 'bp_setup_globals', 'bp_forums_setup' , 9);31 add_action( 'bp_setup_globals', 'bp_forums_setup' ); 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' , 9);46 add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component' ); 47 47 48 48 function bp_forums_directory_forums_setup() { -
branches/1.2/bp-friends.php
r2788 r2794 48 48 do_action( 'friends_setup_globals' ); 49 49 } 50 add_action( 'bp_setup_globals', 'friends_setup_globals' , 9);50 add_action( 'bp_setup_globals', 'friends_setup_globals' ); 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' , 9);87 add_action( 'bp_setup_nav', 'friends_setup_nav' ); 88 88 89 89 /******************************************************************************** -
branches/1.2/bp-groups.php
r2788 r2794 99 99 do_action( 'groups_setup_globals' ); 100 100 } 101 add_action( 'bp_setup_globals', 'groups_setup_globals' , 9);101 add_action( 'bp_setup_globals', 'groups_setup_globals' ); 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' , 9);107 add_action( 'bp_setup_root_components', 'groups_setup_root_component' ); 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' , 9);220 add_action( 'bp_setup_nav', 'groups_setup_nav' ); 221 221 222 222 function groups_directory_groups_setup() { -
branches/1.2/bp-groups/bp-groups-classes.php
r2788 r2794 1164 1164 return false; 1165 1165 1166 /* Register the group extension on the bp_initaction so we have access to all plugins */1166 /* Register the group extension on the plugins_loaded 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
r2788 r2794 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' , 9);7 add_action( 'bp_register_widgets', 'groups_register_widgets' ); 8 8 9 9 /*** GROUPS WIDGET *****************/ -
branches/1.2/bp-messages.php
r2788 r2794 83 83 do_action( 'messages_setup_globals' ); 84 84 } 85 add_action( 'bp_setup_globals', 'messages_setup_globals' , 9);85 add_action( 'bp_setup_globals', 'messages_setup_globals' ); 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' , 9);131 add_action( 'bp_setup_nav', 'messages_setup_nav' ); 132 132 133 133 /******************************************************************************** -
branches/1.2/bp-xprofile.php
r2788 r2794 128 128 do_action( 'xprofile_setup_globals' ); 129 129 } 130 add_action( 'bp_setup_globals', 'xprofile_setup_globals' , 9);130 add_action( 'bp_setup_globals', 'xprofile_setup_globals' ); 131 131 132 132 /** … … 197 197 do_action( 'xprofile_setup_nav' ); 198 198 } 199 add_action( 'bp_setup_nav', 'xprofile_setup_nav' , 9);199 add_action( 'bp_setup_nav', 'xprofile_setup_nav' ); 200 200 201 201 /**
Note: See TracChangeset
for help on using the changeset viewer.