Changeset 10354 for trunk/src/bp-core/admin/bp-core-admin-actions.php
- Timestamp:
- 11/15/2015 06:56:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-actions.php
r10108 r10354 35 35 * near the bottom of this file. 36 36 * 37 * v--WordPress Actions v--BuddyPress Sub-actions37 * v--WordPress Actions v--BuddyPress Sub-actions 38 38 */ 39 39 add_action( 'admin_menu', 'bp_admin_menu' ); … … 47 47 add_action( 'wpmu_new_blog', 'bp_new_site', 10, 6 ); 48 48 49 // Hook on to admin_init 49 // Hook on to admin_init. 50 50 add_action( 'bp_admin_init', 'bp_setup_updater', 1000 ); 51 51 add_action( 'bp_admin_init', 'bp_core_activation_notice', 1010 ); … … 55 55 add_action( 'bp_admin_init', 'bp_do_activation_redirect', 1 ); 56 56 57 // Add a new separator 57 // Add a new separator. 58 58 add_action( 'bp_admin_menu', 'bp_admin_separator' ); 59 59 … … 64 64 * @since 1.7.0 65 65 * 66 * @param int $blog_id 67 * @param int $user_id 68 * @param string $domain 69 * @param string $path 70 * @param int $site_id 71 * @param array $meta 66 * @param int $blog_id ID of the blog being installed to. 67 * @param int $user_id ID of the user the install is for. 68 * @param string $domain Domain to use with the install. 69 * @param string $path Path to use with the install. 70 * @param int $site_id ID of the site being installed to. 71 * @param array $meta Metadata to use with the site creation. 72 72 */ 73 73 function bp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) { 74 74 75 // Bail if plugin is not network activated 75 // Bail if plugin is not network activated. 76 76 if ( ! is_plugin_active_for_network( buddypress()->basename ) ) 77 77 return; 78 78 79 // Switch to the new blog 79 // Switch to the new blog. 80 80 switch_to_blog( $blog_id ); 81 81 … … 94 94 do_action( 'bp_new_site', $blog_id, $user_id, $domain, $path, $site_id, $meta ); 95 95 96 // restore original blog96 // Restore original blog. 97 97 restore_current_blog(); 98 98 } … … 104 104 * 105 105 * @since 1.7.0 106 * 106 107 * @uses do_action() Calls 'bp_admin_init'. 107 108 */ … … 120 121 * 121 122 * @since 1.7.0 123 * 122 124 * @uses do_action() Calls 'bp_admin_menu'. 123 125 */ … … 136 138 * 137 139 * @since 1.7.0 140 * 138 141 * @uses do_action() Calls 'bp_admin_head'. 139 142 */ … … 152 155 * 153 156 * @since 1.7.0 157 * 154 158 * @uses do_action() Calls 'bp_admin_notices'. 155 159 */ … … 169 173 * @since 1.7.0 170 174 * 171 * @uses do_action() Calls 'bp_admin_enqueue_scripts' '.175 * @uses do_action() Calls 'bp_admin_enqueue_scripts'. 172 176 * 173 177 * @param string $hook_suffix The current admin page, passed to … … 190 194 * 191 195 * @since 1.7.0 196 * 192 197 * @uses do_action() Calls 'bp_admin_notices'. 193 198 */ … … 208 213 * 209 214 * @since 1.7.0 215 * 210 216 * @uses do_action() Calls 'bp_admin_notices'. 211 217 */ … … 224 230 * 225 231 * @since 1.7.0 232 * 226 233 * @uses do_action() Calls 'bp_register_admin_settings'. 227 234 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)