Skip to content

Commit

Permalink
undo what breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jan 2, 2022
1 parent 96edfdc commit a11ab7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5984,8 +5984,9 @@ function wp_guess_url() {
$path = $_SERVER['REQUEST_URI'];
}
}

$url = network_home_url( $path );
$schema = is_ssl() ? 'https://' : 'http://'; // set_url_scheme() is not defined yet.
$url = $schema . $_SERVER['HTTP_HOST'] . $path;
//$url = network_home_url( $path );

}

Expand Down

0 comments on commit a11ab7d

Please sign in to comment.