From d025e2a8a1b7b98d7f02c258620a339ffef37feb Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 9 May 2019 15:36:08 -0400 Subject: [PATCH] No longer force non-admin user admin color scheme to sunrise --- functions.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/functions.php b/functions.php index fd81833..eef2234 100644 --- a/functions.php +++ b/functions.php @@ -211,30 +211,10 @@ function remove_admin_bar() { } } -/* - * If the current user is not an admin and is a member, - * return 'sunrise' as the default admin color - */ -add_filter('get_user_option_admin_color', function($result) { - if (!current_user_can('administrator') && current_user_can("glm_members_member")) { - return 'sunrise'; - } - return $result; -}); add_filter('get_template_url', function() { return get_template_directory_uri(); }); -/* - * If the current user is not an admin and is a member, - * return 'sunrise' as the default admin color - */ -add_filter('get_user_option_admin_color', function($result) { - if (!current_user_can('administrator') && current_user_can("glm_members_member")) { - return 'sunrise'; - } - return $result; -}); function is_post_type($type){ global $wp_query; if($type == get_post_type($wp_query->post->ID)) return true; -- 2.17.1