Skip to content

Commit 87b9298

Browse files
committed
Make site_url secure if on SSL page and site_url scheme is not http.
1 parent df78812 commit 87b9298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WordPressHTTPS/Module/Filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function admin_url( $url, $path, $blog_id ) {
9090
* @return string $url
9191
*/
9292
public function site_url( $url, $path, $scheme, $blog_id ) {
93-
if ( $scheme == 'https' ) {
93+
if ( $scheme == 'https' || ( $scheme != 'http' && $this->getPlugin()->isSsl() ) ) {
9494
$url = $this->getPlugin()->makeUrlHttps($url);
9595
}
9696
return $url;

0 commit comments

Comments
 (0)