~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-signup.php

  • Committer: Andrew Glen-Young
  • Date: 2011-03-08 14:47:51 UTC
  • Revision ID: andrew.glen-young@canonical.com-20110308144751-1n6spqgayztf9h77
[AGY] import 3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
add_action( 'wp_head', 'signuppageheaders' ) ;
7
7
 
8
8
require( './wp-blog-header.php' );
9
 
require_once( ABSPATH . WPINC . '/registration.php' );
10
9
 
11
10
if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
12
11
        wp_redirect( network_home_url() );
23
22
}
24
23
 
25
24
if ( !is_multisite() ) {
26
 
        wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
 
25
        wp_redirect( site_url('wp-login.php?action=register') );
27
26
        die();
28
27
}
29
28
 
81
80
                echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) . '</span><br />';
82
81
 
83
82
        if ( !is_user_logged_in() ) {
84
 
                print '(<strong>' . __( 'Your address will be ' );
85
83
                if ( !is_subdomain_install() )
86
 
                        print $current_site->domain . $current_site->path . __( 'sitename' );
 
84
                        $site = $current_site->domain . $current_site->path . __( 'sitename' );
87
85
                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>';
90
88
        }
91
89
 
92
90
        // Blog Title
393
391
$i18n_signup['user'] = _x('user', 'Multisite active signup type');
394
392
 
395
393
if ( 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>';
397
395
 
398
396
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
399
397