Changeset 8242 for branches/crazyhorse/wp-login.php
- Timestamp:
- 07/02/2008 11:07:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-login.php
r8069 r8242 13 13 14 14 // Redirect to https login if forced to use SSL 15 if ( (force_ssl_admin() || force_ssl_login()) && !is_ssl() ) {15 if ( force_ssl_admin() && !is_ssl() ) { 16 16 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 17 17 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI'])); … … 313 313 ?> 314 314 315 <form name="lostpasswordform" id="lostpasswordform" action=" wp-login.php?action=lostpassword" method="post">315 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post"> 316 316 <p> 317 317 <label><?php _e('Username or E-mail:') ?><br /> … … 377 377 ?> 378 378 379 <form name="registerform" id="registerform" action=" wp-login.php?action=register" method="post">379 <form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post"> 380 380 <p> 381 381 <label><?php _e('Username') ?><br /> … … 410 410 $redirect_to = $_REQUEST['redirect_to']; 411 411 else 412 $redirect_to = 'wp-admin/';413 414 if ( is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) )412 $redirect_to = admin_url(); 413 414 if ( is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) ) 415 415 $secure_cookie = false; 416 416 else … … 446 446 ?> 447 447 448 <form name="loginform" id="loginform" action=" wp-login.php" method="post">448 <form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post"> 449 449 <?php if ( !isset($_GET['checkemail']) || !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 450 450 <p>
Note: See TracChangeset
for help on using the changeset viewer.