From: Laury GvR Date: Thu, 9 May 2019 19:36:08 +0000 (-0400) Subject: No longer force non-admin user admin color scheme to sunrise X-Git-Tag: v1.0.0^2~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=d025e2a8a1b7b98d7f02c258620a339ffef37feb;p=WP-Themes%2Fuptravel.git No longer force non-admin user admin color scheme to sunrise --- 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;