Ticket #31495: 31495.2.patch
File 31495.2.patch, 5.3 KB (added by , 10 years ago) |
---|
-
src/wp-signup.php
28 28 add_action( 'wp_head', 'do_signup_header' ); 29 29 30 30 if ( !is_multisite() ) { 31 wp_redirect( site_url('wp-login.php?action=register') );31 wp_redirect( wp_registration_url() ); 32 32 die(); 33 33 } 34 34 … … 669 669 if ( $active_signup == 'none' ) { 670 670 _e( 'Registration has been disabled.' ); 671 671 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 672 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( network_site_url( 'wp-signup.php' )) );672 $login_url = wp_login_url( network_site_url( 'wp-signup.php' ) ); 673 673 echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url ); 674 674 } else { 675 675 $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; -
src/wp-login.php
742 742 login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors); 743 743 ?> 744 744 745 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">745 <form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post" novalidate="novalidate"> 746 746 <p> 747 747 <label for="user_login"><?php _e('Username') ?><br /> 748 748 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label> … … 908 908 } 909 909 ?> 910 910 911 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post') ); ?>" method="post">911 <form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post"> 912 912 <p> 913 913 <label for="user_login"><?php _e('Username') ?><br /> 914 914 <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label> -
src/wp-includes/canonical.php
326 326 /** This filter is documented in wp-login.php */ 327 327 $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 328 328 } else { 329 $redirect_url = site_url( 'wp-login.php?action=register');329 $redirect_url = wp_registration_url(); 330 330 } 331 331 332 332 wp_redirect( $redirect_url, 301 ); … … 591 591 site_url( 'login', 'relative' ), 592 592 ); 593 593 if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) { 594 wp_redirect( site_url( 'wp-login.php', 'login') );594 wp_redirect( wp_login_url() ); 595 595 exit; 596 596 } 597 597 } -
src/wp-admin/network.php
556 556 <?php endif; // end IIS/Apache code branches. 557 557 558 558 if ( !is_multisite() ) { ?> 559 <p><?php _e( 'Once you complete these steps, your network is enabled and configured. You will have to log in again.' ); ?> <a href="<?php echo esc_url( site_url( 'wp-login.php') ); ?>"><?php _e( 'Log In' ); ?></a></p>559 <p><?php _e( 'Once you complete these steps, your network is enabled and configured. You will have to log in again.' ); ?> <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log In' ); ?></a></p> 560 560 <?php 561 561 } 562 562 } -
src/wp-admin/install.php
190 190 // Let's check to make sure WP isn't already installed. 191 191 if ( is_blog_installed() ) { 192 192 display_header(); 193 die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href=" ../wp-login.php" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );193 die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="' . esc_url( wp_login_url() ) . '" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' ); 194 194 } 195 195 196 196 /** … … 341 341 </tr> 342 342 </table> 343 343 344 <p class="step"><a href=" ../wp-login.php" class="button button-large"><?php _e( 'Log In' ); ?></a></p>344 <p class="step"><a href="<?php echo esc_url( wp_login_url() ); ?>" class="button button-large"><?php _e( 'Log In' ); ?></a></p> 345 345 346 346 <?php 347 347 } -
src/wp-activate.php
14 14 require( dirname( __FILE__ ) . '/wp-blog-header.php' ); 15 15 16 16 if ( !is_multisite() ) { 17 wp_redirect( site_url( '/wp-login.php?action=register') );17 wp_redirect( wp_registration_url() ); 18 18 die(); 19 19 } 20 20