Skip to content

Commit

Permalink
Comments update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymotey committed Jul 8, 2024
1 parent aa0b640 commit 802491e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/purge.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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{
Expand Down

0 comments on commit 802491e

Please sign in to comment.