Stop gating admins or feeds ( not that js is shown on feeds )
This commit is contained in:
@ -50,6 +50,11 @@ class CWV3 {
|
|||||||
public function get_cookie_name(){
|
public function get_cookie_name(){
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
|
// Stop gating admins or feeds
|
||||||
|
if ( current_user_can( 'manage_options' ) || is_feed() ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$sitewide = get_option( 'cwv3_sitewide' );
|
$sitewide = get_option( 'cwv3_sitewide' );
|
||||||
$homepage = get_option( 'cwv3_homepage' );
|
$homepage = get_option( 'cwv3_homepage' );
|
||||||
$misc = get_option( 'cwv3_misc' );
|
$misc = get_option( 'cwv3_misc' );
|
||||||
|
Reference in New Issue
Block a user