Ticket #23295: 23295-9.patch
File 23295-9.patch, 868 bytes (added by , 11 years ago) |
---|
-
wp-includes/functions.php
3921 3921 * Output the HTML that shows the wp-login dialog when the user is no longer logged in 3922 3922 */ 3923 3923 function wp_auth_check_html() { 3924 $login_url = site_url( 'wp-login.php', 'login_post');3924 $login_url = wp_login_url(); 3925 3925 $current_domain = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; 3926 3926 $same_domain = ( strpos( $login_url, $current_domain ) === 0 ); 3927 3927 3928 if ( $same_domain && force_ssl_login() && ! force_ssl_admin() ) 3929 $same_domain = false; 3930 3928 3931 // Let plugins change this if they know better. 3929 3932 $same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain ); 3930 3933 $wrap_class = $same_domain ? 'hidden' : 'hidden fallback';