From 7b61c38c8fa4b20432a9f8c3ac12e17e40d17696 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 16 Dec 2014 13:52:48 -0500 Subject: [PATCH] Posts visible when 'edit posts' capability --- Gaslightify.php | 9 +++++++++ css/Gaslightify.css | 2 -- js/Gaslightify.js | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Gaslightify.php b/Gaslightify.php index a3eec38..346419f 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -31,6 +31,15 @@ function interface_client_safeguard() { wp_enqueue_style('GaslightifyMSStyle', plugins_url('css/GaslightifyMS.css', __FILE__)); } } + if (!current_user_can('edit_posts')) { + ?> + + .ab-item").attr("href","#").attr("title",""); -- 2.17.1