WordPress.org

Make WordPress Core

Changeset 50168


Ignore:
Timestamp:
02/02/2021 08:57:31 PM (9 months ago)
Author:
SergeyBiryukov
Message:

General: Remove admin exception for https in network_home_url().

Previously, network_home_url() would automatically switch to https if the current request is already https, but would only do so on the front end.

This mirrors the change made earlier for get_home_url().

Follow-up to [12598], [21937], [24844], [50156].
See #52421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r50164 r50168  
    35913591
    35923592    if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ), true ) ) {
    3593         $scheme = is_ssl() && ! is_admin() ? 'https' : 'http';
     3593        $scheme = is_ssl() ? 'https' : 'http';
    35943594    }
    35953595
Note: See TracChangeset for help on using the changeset viewer.