From a709bdc8169ac02f204db386867ad718f0b22201 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Sun, 14 Dec 2014 01:41:29 -0500 Subject: [PATCH] Hotfix --- README.md | 3 +++ class/main.class.php | 2 +- readme.txt | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3930244..da37b32 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ Please do not contact me with questions like this. If you cannot be descriptive ## Changelog +### 3.6.1 +* Cookie HOTFIX + ### 3.6.0 * Split methods and hooks from main class file, will prevent overhead, also separates admin from front-end. * Moved to use of cookie.js diff --git a/class/main.class.php b/class/main.class.php index a3185a4..9082801 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -86,7 +86,7 @@ class CWV3 { } } - if ( is_single() && isset( $post->ID ) ){ + if ( is_singular() && isset( $post->ID ) ){ if ( $this->is_gated( $post->ID ) ){ return $post->ID; } diff --git a/readme.txt b/readme.txt index 04f9496..a1386e3 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i Tags: warning, message, lading page, front page, enter page, adult content, consent, age verification, validation Requires at least: 3.5 Tested up to: 4.0 -Stable tag: 3.6.0 +Stable tag: 3.6.1 A plugin that provides a warning box with a ton more options completely re-written from the ground up. == Description == @@ -80,6 +80,9 @@ Please do not contact me with questions like this. If you cannot be descriptive == Changelog == += 3.6.1 = +* Cookie HOTFIX + = 3.6.0 = * Split methods and hooks from main class file, will prevent overhead, also separates admin from front-end. * Moved to use of cookie.js