Ticket #26869: signup_url.diff
File signup_url.diff, 2.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/ms.php
670 670 <tr> 671 671 <th scope="row" colspan="2" class="th-full"> 672 672 <?php 673 $signup_url = network_site_url( 'wp-signup.php' );674 673 /** This filter is documented in wp-login.php */ 674 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 675 675 ?> 676 <a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>676 <a href="<?php echo esc_url( $sign_up_url ); ?>"><?php _e( 'Create a New Site' ); ?></a> 677 677 </th> 678 678 </tr> 679 679 <?php endif; ?> -
src/wp-includes/canonical.php
295 295 } 296 296 297 297 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 298 if ( is_multisite() ) 298 if ( is_multisite() ) { 299 299 /** This filter is documented in wp-login.php */ 300 300 $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 301 else301 } else { 302 302 $redirect_url = site_url( 'wp-login.php?action=register' ); 303 } 304 303 305 wp_redirect( $redirect_url, 301 ); 304 306 die(); 305 307 } -
src/wp-login.php
643 643 644 644 case 'register' : 645 645 if ( is_multisite() ) { 646 $sign_up_url = network_site_url( 'wp-signup.php' );647 646 /** 648 647 * Filter the Multisite sign up URL. 649 648 * … … 651 650 * 652 651 * @param string $sign_up_url The sign up URL. 653 652 */ 654 wp_redirect( apply_filters( 'wp_signup_location', $sign_up_url) );653 wp_redirect( apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ) ); 655 654 exit; 656 655 } 657 656