diff --git a/unl.php b/unl.php index a4c6bbd6124b16e3148f397be5e46df142cdf678..23435cdbcc8cabfb437bd5bfb50c02bc0ab8c0bb 100644 --- a/unl.php +++ b/unl.php @@ -111,6 +111,13 @@ function unl_disable() exit; } +function unl_new_blog($blogId) +{ + switch_to_blog($blogId); + switch_theme('unl_modern', 'unl_modern'); + restore_current_blog(); +} + add_action('set_current_user', 'unl_set_current_user', 0); add_action('plugins_loaded', 'unl_init'); add_action('auth_redirect', 'unl_auth_redirect'); @@ -121,3 +128,4 @@ add_action('login_form_register', 'unl_auth_redirect'); add_action('retrieve_password', 'unl_disable'); add_action('lost_password', 'unl_disable'); add_action('password_reset', 'unl_disable'); +add_action('wpmu_new_blog', 'unl_new_blog');