Ticket #17166: wp-signup.diff
File wp-signup.diff, 3.4 KB (added by , 13 years ago) |
---|
-
wp-signup.php
13 13 } 14 14 15 15 function do_signup_header() { 16 do_action( "signup_header");16 do_action( 'signup_header' ); 17 17 } 18 18 add_action( 'wp_head', 'do_signup_header' ); 19 19 … … 188 188 <p><?php _e( 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p> 189 189 <form id="setupform" method="post" action="wp-signup.php"> 190 190 <input type="hidden" name="stage" value="gimmeanotherblog" /> 191 <?php do_action( "signup_hidden_fields"); ?>191 <?php do_action( 'signup_hidden_fields' ); ?> 192 192 <?php show_blog_form($blogname, $blog_title, $errors); ?> 193 193 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> 194 194 </form> … … 252 252 <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> 253 253 <form id="setupform" method="post" action="wp-signup.php"> 254 254 <input type="hidden" name="stage" value="validate-user-signup" /> 255 <?php do_action( "signup_hidden_fields"); ?>255 <?php do_action( 'signup_hidden_fields' ); ?> 256 256 <?php show_user_form($user_name, $user_email, $errors); ?> 257 257 258 258 <p> … … 288 288 return false; 289 289 } 290 290 291 wpmu_signup_user($user_name, $user_email, apply_filters( "add_signup_meta", array() ) );291 wpmu_signup_user($user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); 292 292 293 293 confirm_user_signup($user_name, $user_email); 294 294 return true; … … 323 323 <input type="hidden" name="stage" value="validate-blog-signup" /> 324 324 <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> 325 325 <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> 326 <?php do_action( "signup_hidden_fields"); ?>326 <?php do_action( 'signup_hidden_fields' ); ?> 327 327 <?php show_blog_form($blogname, $blog_title, $errors); ?> 328 328 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> 329 329 </form> … … 350 350 351 351 $public = (int) $_POST['blog_public']; 352 352 $meta = array ('lang_id' => 1, 'public' => $public); 353 $meta = apply_filters( "add_signup_meta", $meta );353 $meta = apply_filters( 'add_signup_meta', $meta ); 354 354 355 355 wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); 356 356 confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta); … … 396 396 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 397 397 398 398 $current_user = wp_get_current_user(); 399 if ( $active_signup == "none") {399 if ( $active_signup == 'none' ) { 400 400 _e( 'Registration has been disabled.' ); 401 401 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 402 402 if ( is_ssl() ) … … 426 426 case 'default': 427 427 default : 428 428 $user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : ''; 429 do_action( "preprocess_signup_form"); // populate the form from invites, elsewhere?429 do_action( 'preprocess_signup_form' ); // populate the form from invites, elsewhere? 430 430 if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) 431 431 signup_another_blog($newblogname); 432 432 elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )