Make WordPress Core

Ticket #17896: general-template.diff

File general-template.diff, 559 bytes (added by peterwilsoncc, 15 years ago)
  • (a) general-template.php vs. (b) (current

    a b  
    253253 */
    254254function wp_login_form( $args = array() ) {
    255255        $defaults = array( 'echo' => true,
    256                                                 'redirect' => site_url( $_SERVER['REQUEST_URI'] ), // Default redirect is back to the current page
     256                                                'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
    257257                                                'form_id' => 'loginform',
    258258                                                'label_username' => __( 'Username' ),
    259259                                                'label_password' => __( 'Password' ),