WordPress.org

Make WordPress Core

Changeset 24844


Ignore:
Timestamp:
07/29/2013 01:21:27 AM (7 years ago)
Author:
nacin
Message:

If wp-login.php is accessed over HTTPS, get_home_url() should not return HTTPS. This is the same assumption we use in the admin.

props willnorris.
fixes #16822.

File:
1 edited

Legend:

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

    r24783 r24844  
    19141914
    19151915    if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) {
    1916         if ( is_ssl() && ! is_admin() )
     1916        if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] )
    19171917            $scheme = 'https';
    19181918        else
Note: See TracChangeset for help on using the changeset viewer.