WordPress.org

Make WordPress Core

Ticket #17166: wp-signup.diff

File wp-signup.diff, 3.4 KB (added by niallkennedy, 3 years ago)

dynamic strings to static strings

  • wp-signup.php

     
    1313} 
    1414 
    1515function do_signup_header() { 
    16         do_action("signup_header"); 
     16        do_action( 'signup_header' ); 
    1717} 
    1818add_action( 'wp_head', 'do_signup_header' ); 
    1919 
     
    188188        <p><?php _e( 'If you&#8217;re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p> 
    189189        <form id="setupform" method="post" action="wp-signup.php"> 
    190190                <input type="hidden" name="stage" value="gimmeanotherblog" /> 
    191                 <?php do_action( "signup_hidden_fields" ); ?> 
     191                <?php do_action( 'signup_hidden_fields' ); ?> 
    192192                <?php show_blog_form($blogname, $blog_title, $errors); ?> 
    193193                <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> 
    194194        </form> 
     
    252252        <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> 
    253253        <form id="setupform" method="post" action="wp-signup.php"> 
    254254                <input type="hidden" name="stage" value="validate-user-signup" /> 
    255                 <?php do_action( "signup_hidden_fields" ); ?> 
     255                <?php do_action( 'signup_hidden_fields' ); ?> 
    256256                <?php show_user_form($user_name, $user_email, $errors); ?> 
    257257 
    258258                <p> 
     
    288288                return false; 
    289289        } 
    290290 
    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() ) ); 
    292292 
    293293        confirm_user_signup($user_name, $user_email); 
    294294        return true; 
     
    323323                <input type="hidden" name="stage" value="validate-blog-signup" /> 
    324324                <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> 
    325325                <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' ); ?> 
    327327                <?php show_blog_form($blogname, $blog_title, $errors); ?> 
    328328                <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> 
    329329        </form> 
     
    350350 
    351351        $public = (int) $_POST['blog_public']; 
    352352        $meta = array ('lang_id' => 1, 'public' => $public); 
    353         $meta = apply_filters( "add_signup_meta", $meta ); 
     353        $meta = apply_filters( 'add_signup_meta', $meta ); 
    354354 
    355355        wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); 
    356356        confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta); 
     
    396396$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 
    397397 
    398398$current_user = wp_get_current_user(); 
    399 if ( $active_signup == "none" ) { 
     399if ( $active_signup == 'none' ) { 
    400400        _e( 'Registration has been disabled.' ); 
    401401} elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 
    402402        if ( is_ssl() ) 
     
    426426                case 'default': 
    427427                default : 
    428428                        $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? 
    430430                        if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) 
    431431                                signup_another_blog($newblogname); 
    432432                        elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )