Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r19304 r20556  
    9696        <p class="privacy-intro">
    9797            <label for="blog_public_on"><?php _e('Privacy:') ?></label>
    98             <?php _e('Allow my site to appear in search engines like Google, Technorati, and in public listings around this network.'); ?>
     98            <?php _e( 'Allow search engines to index this site.' ); ?>
    9999            <br style="clear:both" />
    100100            <label class="checkbox" for="blog_public_on">
    … …  
    219219        <h2><?php printf( __( 'The site %s is yours.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
    220220        <p>
    221                 <?php printf( __( '<a href="http://%1$s">http://%2$s</a> is your new site.  <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name ) ?>
     221                <?php printf( __( '<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name ) ?>
    222222        </p>
    223223        <?php
    … …  
    230230        if ( !is_wp_error($errors) )
    231231                $errors = new WP_Error();
    232         if ( isset( $_POST[ 'signup_for' ] ) )
    233                 $signup[ esc_html( $_POST[ 'signup_for' ] ) ] = 'checked="checked"';
    234         else
    235                 $signup[ 'blog' ] = 'checked="checked"';
    236 
    237         //TODO - This doesn't seem to do anything do we really need it?
    238         $signup['user'] = isset( $signup['user'] ) ? $signup['user'] : '';
     232
     233        $signup_for = isset( $_POST[ 'signup_for' ] ) ? esc_html( $_POST[ 'signup_for' ] ) : 'blog';
    239234
    240235        // allow definition of default variables
    … …  
    258253                        <input id="signupblog" type="hidden" name="signup_for" value="user" />
    259254                <?php } else { ?>
    260                         <input id="signupblog" type="radio" name="signup_for" value="blog" <?php echo $signup['blog'] ?> />
     255                        <input id="signupblog" type="radio" name="signup_for" value="blog" <?php checked( $signup_for, 'blog' ); ?> />
    261256                        <label class="checkbox" for="signupblog"><?php _e('Gimme a site!') ?></label>
    262257                        <br />
    263                         <input id="signupuser" type="radio" name="signup_for" value="user" <?php echo $signup['user'] ?> />
     258                        <input id="signupuser" type="radio" name="signup_for" value="user" <?php checked( $signup_for, 'user' ); ?> />
    264259                        <label class="checkbox" for="signupuser"><?php _e('Just a username, please.') ?></label>
    265260                <?php } ?>
    … …  
    295290        <h2><?php printf( __( '%s is your new username' ), $user_name) ?></h2>
    296291        <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p>
    297         <p><?php printf(__( 'Check your inbox at <strong>%1$s</strong> and click the link given.' ),  $user_email) ?></p>
     292        <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email ); ?></p>
    298293        <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p>
    299294        <?php
Note: See TracChangeset for help on using the changeset viewer.