Make WordPress Core

Ticket #33545: check_for_existence_of_pagenow_global.diff

File check_for_existence_of_pagenow_global.diff, 605 bytes (added by KalenJohnson, 11 years ago)
  • wp-includes/link-template.php

    diff --git wp-includes/link-template.php wp-includes/link-template.php
    index 0d8e0a2..5a80a1c 100644
    function get_home_url( $blog_id = null, $path = '', $scheme = null ) {  
    27432743        }
    27442744
    27452745        if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) {
    2746                 if ( is_ssl() && ! is_admin() && isset( $GLOBALS['pagenow'] ) && 'wp-login.php' !== $GLOBALS['pagenow'] )
     2746                if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] )
    27472747                        $scheme = 'https';
    27482748                else
    27492749                        $scheme = parse_url( $url, PHP_URL_SCHEME );