Ticket #13087: 13087.patch
| File 13087.patch, 6.3 KB (added by ocean90, 3 years ago) |
|---|
-
wp-signup.php
9 9 require_once( ABSPATH . WPINC . '/registration.php' ); 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 } 15 15 … … 28 28 } 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 34 … … 75 75 if ( !is_subdomain_install() ) 76 76 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 77 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 />';78 echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . '</span><br />'; 79 79 80 80 if ( !is_user_logged_in() ) { 81 81 print '(<strong>' . __( 'Your address will be ' ); … … 98 98 <div id="privacy"> 99 99 <p class="privacy-intro"> 100 100 <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.'); ?>101 <?php _e('Allow my blog to appear in search engines like Google, Technorati, and in public listings around this network.'); ?> 102 102 <div style="clear:both;"></div> 103 103 <label class="checkbox" for="blog_public_on"> 104 104 <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> /> … … 137 137 <?php if ( $errmsg = $errors->get_error_message('user_email') ) { ?> 138 138 <p class="error"><?php echo $errmsg ?></p> 139 139 <?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>.)') ?>140 <input name="user_email" type="text" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('(Double-check your email address before continuing.)') ?> 141 141 <?php 142 142 if ( $errmsg = $errors->get_error_message('generic') ) { 143 143 echo '<p class="error">' . $errmsg . '</p>'; … … 177 177 <?php _e( 'Sites you are already a member of:' ) ?> 178 178 <ul> 179 179 <?php foreach ( $blogs as $blog ) { 180 echo "<li><a href=' http://" . $blog->domain . $blog->path . "'>" . $blog->domain . $blog->path. "</a></li>";180 echo "<li><a href='" . esc_url( get_home_url( $blog->userblog_id ) ). "'>" . get_home_url( $blog->userblog_id ) . "</a></li>"; 181 181 } ?> 182 182 </ul> 183 183 </p> … … 360 360 <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2> 361 361 362 362 <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>363 <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email) ?></p> 364 364 <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p> 365 365 <h2><?php _e( 'Still waiting for your email?' ); ?></h2> 366 366 <p> 367 367 <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ) ?> 368 368 <ul id="noemail-tips"> 369 <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>370 <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li>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>369 <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> 370 <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li> 371 <li><?php printf( __( 'Have you entered your email correctly? You have entered %s, if it’s incorrectly, you will not receive your email.' ), $user_email ) ?></li> 372 372 </ul> 373 373 </p> 374 374 <?php … … 383 383 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user" 384 384 385 385 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>';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="%s">Options page</a>.' ), $active_signup, esc_url( network_admin_url( 'ms-options.php' ) ) ) . '</div>'; 387 387 388 388 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 389 389 … … 424 424 elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) ) 425 425 signup_user( $newblogname, $user_email ); 426 426 elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) ) 427 _e( ' We are sorry. We are not accepting new registrationsat this time.' );427 _e( 'Sorry, new registrations are not allowed at this time.' ); 428 428 else 429 429 _e( 'You are logged in already. No need to register again!' ); 430 430