$base .= $config->wpBasePage;
}
+ if (!isset($path) && !isset($query)) {
+ // This seems to have very different structure than the others. I don't know
+ // why it's so different (and I can only find two obvious use-cases, of which
+ // at least one looks gratuitous).
+ return $base . $fragment;
+ }
+
if (isset($path)) {
if (isset($query)) {
if ($permlinkStructure != '' && ($pageID || $script != '')) {
return $base . '?' . $query . $pageID . $fragment;
}
}
- else {
- return $base . $fragment;
- }
}
}