Stop gating admins or feeds ( not that js is shown on feeds )

This commit is contained in:
Jay Wood
2014-12-01 07:51:12 -05:00
parent 76fdf9a9c3
commit 690c12cc26

View File

@ -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' );