diff --git a/src/Subscriber/DisallowIndexingSubscriber.php b/src/Subscriber/DisallowIndexingSubscriber.php index 05bda09..d65e604 100644 --- a/src/Subscriber/DisallowIndexingSubscriber.php +++ b/src/Subscriber/DisallowIndexingSubscriber.php @@ -63,10 +63,6 @@ public function displayAdminNotice() */ public function filterBlogPublic($value) { - if ($this->usingVanityDomain) { - $value = 0; - } - - return $value; + return !$this->usingVanityDomain ? $value : 0; } }