From 80e21d9fe0b626769d0c52e2a2233e18ad4efe5b Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Mon, 1 Dec 2014 07:56:39 -0500 Subject: [PATCH] Remove that, no need, it's already in another method... derp --- class/main.class.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/class/main.class.php b/class/main.class.php index 200b887..4b20a98 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -28,7 +28,7 @@ class CWV3 { 'opacity' => get_option( 'cwv3_bg_opacity', 0.85 ), 'cookie_path' => SITECOOKIEPATH, 'cookie_name' => $this->get_cookie_name(), - 'cookie_time' => intval( $cookie_death ) > 365 ? 365 : intval( $cookie_death ), + 'cookie_time' => intval( $cookie_death ) > 365 ? 365 : intval( $cookie_death ), // Max at one year if it's over 365 days. 'denial_enabled' => get_option( 'cwv3_denial', 'enabled' ), 'denial_method' => get_option( 'cwv3_method', 'redirect' ), 'redirect_url' => esc_js( get_option( 'cwv3_exit_link', '#' ) ), @@ -60,11 +60,6 @@ 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' );