Skip to content
Snippets Groups Projects
Commit c5ad55a8 authored by Tim Steiner's avatar Tim Steiner
Browse files

Make the default theme for new blogs unl_modern.

parent 51b1a214
No related branches found
No related tags found
No related merge requests found
......@@ -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');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment