From: Laury GvR Date: Tue, 16 Dec 2014 18:52:48 +0000 (-0500) Subject: Posts visible when 'edit posts' capability X-Git-Tag: v1.36~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7b61c38c8fa4b20432a9f8c3ac12e17e40d17696;p=WP-Plugins%2FGaslightify.git Posts visible when 'edit posts' capability --- 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","");