Skip to content

Commit

Permalink
(fix): remove unused scheme parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonvanWijhe committed Dec 13, 2024
1 parent fbe150d commit 747bf75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/URLFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function addFilters(): void
{
add_filter('option_home', [$this, 'fixHomeURL']);
add_filter('option_siteurl', [$this, 'fixSiteURL']);
add_filter('network_site_url', [$this, 'fixNetworkSiteURL'], 10, 3);
add_filter('network_site_url', [$this, 'fixNetworkSiteURL'], 10, 2);
}

/**
Expand Down Expand Up @@ -52,7 +52,7 @@ public function fixSiteURL(string $url): string
/**
* Ensure that the network site URL contains the /wp subdirectory.
*/
public function fixNetworkSiteURL(string $url, string $path, string $scheme): string
public function fixNetworkSiteURL(string $url, string $path): string
{
$path = ltrim($path, '/');
$url = substr($url, 0, strlen($url) - strlen($path));
Expand Down

0 comments on commit 747bf75

Please sign in to comment.