Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r15452 r16755  
    77
    88require( './wp-blog-header.php' );
    9 require_once( ABSPATH . WPINC . '/registration.php' );
    109
    1110if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
     
    2423
    2524if ( !is_multisite() ) {
    26     wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
     25    wp_redirect( site_url('wp-login.php?action=register') );
    2726    die();
    2827}
     
    8281
    8382    if ( !is_user_logged_in() ) {
    84         print '(<strong>' . __( 'Your address will be ' );
    8583        if ( !is_subdomain_install() )
    86             print $current_site->domain . $current_site->path . __( 'sitename' );
     84            $site = $current_site->domain . $current_site->path . __( 'sitename' );
    8785        else
    88             print __( 'domain.' ) . $site_domain . $current_site->path;
    89         echo '.</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>';
     86            $site = __( 'domain' ) . '.' . $site_domain . $current_site->path;
     87        echo '<p>(<strong>' . sprintf( __('Your address will be %s.'), $site ) . '</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>';
    9088    }
    9189
     
    394392
    395393if ( is_super_admin() )
    396     echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing &#8220;%s&#8221; registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'ms-options.php' ) ) ) . '</div>';
     394    echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing &#8220;%s&#8221; registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '</div>';
    397395
    398396$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
Note: See TracChangeset for help on using the changeset viewer.