WordPress.org

Make WordPress Core

Ticket #10740: filter-scheme-in-auth-redirect.diff

File filter-scheme-in-auth-redirect.diff, 478 bytes (added by nbachiyski, 6 years ago)
  • wp-includes/pluggable.php

     
    750750                } 
    751751        } 
    752752 
    753         if ( $user_id = wp_validate_auth_cookie() ) { 
     753        if ( $user_id = wp_validate_auth_cookie( '', apply_filters( 'auth_redirect_scheme', '' ) ) ) { 
    754754                do_action('auth_redirect', $user_id); 
    755755 
    756756                // If the user wants ssl but the session is not ssl, redirect.