Changeset 21813
- Timestamp:
- 09/11/2012 12:27:25 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r21801 r21813 675 675 <tr> 676 676 <th scope="row" colspan="2" class="th-full"> 677 <a href="<?php echo apply_filters( 'wp_signup_location', network_ home_url( 'wp-signup.php' ) ); ?>"><?php _e( 'Create a New Site' ); ?></a>677 <a href="<?php echo apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); ?>"><?php _e( 'Create a New Site' ); ?></a> 678 678 </th> 679 679 </tr> -
trunk/wp-includes/canonical.php
r21217 r21813 19 19 * 20 20 * Prevents redirection for feeds, trackbacks, searches, comment popup, and 21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7, 21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7, 22 22 * page/post previews, WP admin, Trackbacks, robots.txt, searches, or on POST 23 23 * requests. … … 283 283 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 284 284 if ( is_multisite() ) 285 $redirect_url = apply_filters( 'wp_signup_location', site_url( 'wp-signup.php' ) );285 $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 286 286 else 287 287 $redirect_url = site_url( 'wp-login.php?action=register' ); -
trunk/wp-login.php
r21664 r21813 510 510 if ( is_multisite() ) { 511 511 // Multisite uses wp-signup.php 512 wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );512 wp_redirect( apply_filters( 'wp_signup_location', network_site_url('wp-signup.php') ) ); 513 513 exit; 514 514 } -
trunk/wp-signup.php
r21664 r21813 24 24 25 25 if ( !is_main_site() ) { 26 wp_redirect( network_ home_url( 'wp-signup.php' ) );26 wp_redirect( network_site_url( 'wp-signup.php' ) ); 27 27 die(); 28 28 } … … 391 391 _e( 'Registration has been disabled.' ); 392 392 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 393 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . '/wp-signup.php' ) ) );393 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( network_site_url( 'wp-signup.php' ) ) ); 394 394 echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url ); 395 395 } else {
Note: See TracChangeset
for help on using the changeset viewer.