mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't do SSL discovery for every RSD request. APP endpoint already respects the SSLness of the site. Fixes #15960.
git-svn-id: https://develop.svn.wordpress.org/trunk@17642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3322,22 +3322,6 @@ function url_is_accessable_via_ssl($url)
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Secure URL, if available or the given URL.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $url Complete URL path with transport.
|
||||
* @return string Secure or regular URL path.
|
||||
*/
|
||||
function atom_service_url_filter($url)
|
||||
{
|
||||
if ( url_is_accessable_via_ssl($url) )
|
||||
return preg_replace( '/^http:\/\//', 'https://', $url );
|
||||
else
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks a function as deprecated and informs when it has been used.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user