Changeset 16213
- Timestamp:
- 11/05/2010 09:35:28 PM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-default-filters.php
r16021 r16213 23 23 // Blogs 24 24 add_filter( 'wpmu_validate_blog_signup', 'signup_nonce_check' ); 25 add_action( 'wpmu_new_blog', 'wpmu_activate_network_plugins', 9 );26 25 add_action( 'wpmu_new_blog', 'wpmu_log_new_registrations', 10, 2 ); 27 26 add_action( 'wpmu_new_blog', 'newblog_notify_siteadmin', 10, 2 ); -
trunk/wp-includes/ms-functions.php
r16179 r16213 1225 1225 } 1226 1226 1227 /**1228 * Fires activation hooks for all active network plugins1229 *1230 * @since 3.1.01231 *1232 * @param int $blog_id Blog ID1233 */1234 function wpmu_activate_network_plugins( $blog_id ) {1235 switch_to_blog( $blog_id );1236 1237 $active_sitewide_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );1238 1239 foreach ( array_keys( $active_sitewide_plugins ) as $plugin ) {1240 do_action( 'activate_' . $plugin, false );1241 do_action( 'activate_plugin', $plugin, false );1242 }1243 1244 restore_current_blog();1245 }1246 1247 1227 function wpmu_log_new_registrations( $blog_id, $user_id ) { 1248 1228 global $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.