mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Coding Standards: Use Yoda conditions where appropriate.
See #49222. git-svn-id: https://develop.svn.wordpress.org/trunk@47219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -372,7 +372,7 @@ function get_rest_url( $blog_id = null, $path = '/', $scheme = 'rest' ) {
|
||||
|
||||
if ( is_ssl() && isset( $_SERVER['SERVER_NAME'] ) ) {
|
||||
// If the current host is the same as the REST URL host, force the REST URL scheme to HTTPS.
|
||||
if ( $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) ) {
|
||||
if ( parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) === $_SERVER['SERVER_NAME'] ) {
|
||||
$url = set_url_scheme( $url, 'https' );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user