diff --git a/content-warning-v2.php b/content-warning-v2.php index 3499846..cdd2a0a 100644 --- a/content-warning-v2.php +++ b/content-warning-v2.php @@ -135,7 +135,7 @@ class ContentWarning_v2 { if ( $cat_gated ) { // Return the category cookie name like _cat_### return '_cat_' . $cat_gated; - } else if ( $this->is_gated( $post->post_parent ) ) { + } elseif ( $this->is_gated( $post->post_parent ) ) { return $post->post_parent; } } @@ -145,7 +145,7 @@ class ContentWarning_v2 { if ( $cat_gated ) { // Return the category cookie name like _cat_### return '_cat_' . $cat_gated; - } else if ( $this->is_gated( $post->ID ) ) { + } elseif ( $this->is_gated( $post->ID ) ) { return $post->ID; } }