Skip to content

Commit

Permalink
add is_multisite check to str_replace (#161)
Browse files Browse the repository at this point in the history
tested on subdom, subdir and single sites
  • Loading branch information
jazzsequence authored Aug 30, 2024
1 parent 5783444 commit 05e7069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/mu-plugins/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function adjust_main_site_urls( string $url ) : string {
}

// If this is the main site, drop the /wp.
if ( is_main_site() ) {
if ( is_main_site() && is_multisite() ) {
$url = str_replace( '/wp/', '/', $url );
}

Expand Down

0 comments on commit 05e7069

Please sign in to comment.