WordPress.org

Make WordPress Core

Ticket #23295: 23295-9.patch

File 23295-9.patch, 868 bytes (added by azaozz, 11 months ago)
  • wp-includes/functions.php

     
    39213921 * Output the HTML that shows the wp-login dialog when the user is no longer logged in 
    39223922 */ 
    39233923function wp_auth_check_html() { 
    3924         $login_url = site_url( 'wp-login.php', 'login_post' ); 
     3924        $login_url = wp_login_url(); 
    39253925        $current_domain = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; 
    39263926        $same_domain = ( strpos( $login_url, $current_domain ) === 0 ); 
    39273927 
     3928        if ( $same_domain && force_ssl_login() && ! force_ssl_admin() ) 
     3929                $same_domain = false; 
     3930 
    39283931        // Let plugins change this if they know better. 
    39293932        $same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain ); 
    39303933        $wrap_class = $same_domain ? 'hidden' : 'hidden fallback';