From 690c12cc26f0d56c8e8b3a2771f48c18eb07b578 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Mon, 1 Dec 2014 07:51:12 -0500 Subject: [PATCH] Stop gating admins or feeds ( not that js is shown on feeds ) --- class/main.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/class/main.class.php b/class/main.class.php index 659bce7..4581176 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -50,6 +50,11 @@ class CWV3 { public function get_cookie_name(){ global $post; + // Stop gating admins or feeds + if ( current_user_can( 'manage_options' ) || is_feed() ) { + return false; + } + $sitewide = get_option( 'cwv3_sitewide' ); $homepage = get_option( 'cwv3_homepage' ); $misc = get_option( 'cwv3_misc' );