mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -891,12 +891,7 @@ function get_header_image() {
|
||||
if ( is_random_header_image() )
|
||||
$url = get_random_header_image();
|
||||
|
||||
if ( is_ssl() )
|
||||
$url = str_replace( 'http://', 'https://', $url );
|
||||
else
|
||||
$url = str_replace( 'https://', 'http://', $url );
|
||||
|
||||
return esc_url_raw( $url );
|
||||
return esc_url_raw( set_url_scheme( $url ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user