From c5ad55a846b5584513adf08012edbcbe9df4f927 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Fri, 16 Apr 2010 16:56:36 +0000 Subject: [PATCH] Make the default theme for new blogs unl_modern. --- unl.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unl.php b/unl.php index a4c6bbd..23435cd 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'); -- GitLab