From 5e4dc714233390673ada1b1f2034037a484194f9 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Mon, 1 Dec 2014 07:58:31 -0500 Subject: [PATCH] Make those inline --- class/main.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/class/main.class.php b/class/main.class.php index 4b20a98..1c933b3 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -81,15 +81,13 @@ class CWV3 { if ( is_attachment() && isset( $post->post_parent ) ) { // Special consideration needs to be taken to check if the post parent is in-fact // gated in any way, if so, return its ID here. - $is_gated = $this->is_gated( $post->post_parent ); - if ( true === $is_gated ){ + if ( $this->is_gated( $post->post_parent ) ){ return $post->post_parent; } } if ( is_single() && isset( $post->ID ) ){ - $is_gated = $this->is_gated( $post->ID ); - if ( true == $is_gated ){ + if ( $this->is_gated( $post->ID ) ){ return $post->ID; } }