Changeset 14575
- Timestamp:
- 05/12/2010 12:45:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-signup.php
r14139 r14575 10 10 11 11 if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) { 12 wp_redirect( "http://{$current_site->domain}{$current_site->path}");12 wp_redirect( network_home_url() ); 13 13 die(); 14 14 } … … 29 29 30 30 if ( !is_main_site() ) { 31 wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php");31 wp_redirect( network_home_url( 'wp-signup.php' ) ); 32 32 die(); 33 33 } 34 35 // Fix for page title 36 $wp_query->is_404 = false; 34 37 35 38 function wpmu_signup_stylesheet() { … … 76 79 echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="50" /><br />'; 77 80 else 78 echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . $current_site->path .'</span><br />';81 echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . '</span><br />'; 79 82 80 83 if ( !is_user_logged_in() ) { … … 84 87 else 85 88 print __( 'domain.' ) . $current_site->domain . $current_site->path; 86 echo '. </strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>';89 echo '.)</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>'; 87 90 } 88 91 … … 99 102 <p class="privacy-intro"> 100 103 <label for="blog_public_on"><?php _e('Privacy:') ?></label> 101 <?php _e(' I would like my site to appear in search engines like Google andTechnorati, and in public listings around this network.'); ?>104 <?php _e('Allow my site to appear in search engines like Google, Technorati, and in public listings around this network.'); ?> 102 105 <div style="clear:both;"></div> 103 106 <label class="checkbox" for="blog_public_on"> … … 138 141 <p class="error"><?php echo $errmsg ?></p> 139 142 <?php } ?> 140 <input name="user_email" type="text" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e(' (We’ll send your password to this address, so <strong>triple-check it</strong>.)') ?>143 <input name="user_email" type="text" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?> 141 144 <?php 142 145 if ( $errmsg = $errors->get_error_message('generic') ) { … … 178 181 <ul> 179 182 <?php foreach ( $blogs as $blog ) { 180 echo "<li><a href='http://" . $blog->domain . $blog->path . "'>" . $blog->domain . $blog->path . "</a></li>"; 183 $home_url = get_home_url( $blog->userblog_id ); 184 echo '<li><a href="' . esc_url( $home_url ) . '">' . $home_url . '</a></li>'; 181 185 } ?> 182 186 </ul> … … 361 365 362 366 <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.' ) ?></p> 363 <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given. It should arrive within 30 minutes.' ), $user_email) ?></p>367 <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email) ?></p> 364 368 <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p> 365 369 <h2><?php _e( 'Still waiting for your email?' ); ?></h2> … … 367 371 <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ) ?> 368 372 <ul id="noemail-tips"> 369 <li><p><strong><?php _e( 'Wait a little longer. 370 <li><p><?php _e( 'Check the junk or spam folder of your email client. 371 <li><?php printf( __( 'Have you entered your email correctly? We think it’s %s but if you have entered it incorrectly, you will not receive it.' ), $user_email ) ?></li>373 <li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ) ?></strong></p></li> 374 <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li> 375 <li><?php printf( __( 'Have you entered your email correctly? You have entered %s, if it’s incorrect, you will not receive your email.' ), $user_email ) ?></li> 372 376 </ul> 373 377 </p> … … 384 388 385 389 if ( is_super_admin() ) 386 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your <a href=" wp-admin/ms-options.php">Options page</a>.' ), $active_signup) . '</div>';390 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $active_signup, esc_url( network_admin_url( 'ms-options.php' ) ) ) . '</div>'; 387 391 388 392 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; … … 425 429 signup_user( $newblogname, $user_email ); 426 430 elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) ) 427 _e( ' We are sorry. We are not accepting new registrationsat this time.' );431 _e( 'Sorry, new registrations are not allowed at this time.' ); 428 432 else 429 433 _e( 'You are logged in already. No need to register again!' );
Note: See TracChangeset
for help on using the changeset viewer.