diff --git a/cli/purge.cls.php b/cli/purge.cls.php index b7e25b4d1..fe650577e 100644 --- a/cli/purge.cls.php +++ b/cli/purge.cls.php @@ -167,9 +167,10 @@ public function url($args) if (is_multisite()) { $current_blog = get_current_blog_id(); - // If subfolder install test if current url has a blog link. If subdomain install: $path needs to remain '/'. $path = '/'; $switch_blog = null; + // If subfolder install test if we can identify the blog from url. + // If subdomain install: $path needs to remain '/'. if(!SUBDOMAIN_INSTALL){ // Get subfolder blog link. Try to match to a blog id. $temp_path = explode('/', $deconstructed['path']); @@ -181,7 +182,7 @@ public function url($args) // Get blog id from URL. $url_blog = get_blog_id_from_url($deconstructed['host'], $path); if(!$url_blog){ - // If no blog found, is main blog + // If not found, is main blog. $path = '/'; } else{