From cf090c6e551bc3aa33128b080decae66965e670b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 19 Jul 2016 08:09:40 -0400 Subject: [PATCH] No commits for the Author Also no server stats. Test for edit_others_posts if not set then they are an Author and should only see posts and media --- Gaslightify.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Gaslightify.php b/Gaslightify.php index b54ee0e..73e28c2 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -32,7 +32,7 @@ function interface_client_safeguard() { wp_enqueue_style('GaslightifyMultiSiteStyle', plugins_url('css/GaslightifyMultiSite.css', __FILE__)); } } - if (!current_user_can('edit_posts')) { + if ( !current_user_can( 'edit_posts' ) ) { ?> + +