No need to check if empty

This commit is contained in:
Jay Wood
2015-08-29 13:51:08 -04:00
parent 03e874f571
commit 1c8a8264a8

View File

@ -45,7 +45,7 @@ class CWV3 {
if ( is_singular() && isset( $post->ID ) ) { if ( is_singular() && isset( $post->ID ) ) {
$cat_gated = $this->is_cat_gated( $post->ID ); $cat_gated = $this->is_cat_gated( $post->ID );
if ( ! empty( $cat_gated ) ) { if ( $cat_gated ) {
// Return the category cookie name like _cat_### // Return the category cookie name like _cat_###
return '_cat_' . $cat_gated; return '_cat_' . $cat_gated;
} else if ( $this->is_gated( $post->ID ) ) { } else if ( $this->is_gated( $post->ID ) ) {