--- wp-signup.php +++ wp-signup.php @@ -816,15 +816,31 @@ */ $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); -// Make the signup type translatable. -$i18n_signup['all'] = _x('all', 'Multisite active signup type'); -$i18n_signup['none'] = _x('none', 'Multisite active signup type'); -$i18n_signup['blog'] = _x('blog', 'Multisite active signup type'); -$i18n_signup['user'] = _x('user', 'Multisite active signup type'); - -if ( is_super_admin() ) { - /* translators: 1: type of site sign-up; 2: network settings URL */ - echo '
' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your Options page.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '
'; +if ( current_user_can( 'manage_network' ) ) { + echo '
'; + _e( 'Greetings Network Administrator!' ); + echo ' '; + + switch ( $active_signup ) { + case 'none': + _e( 'The network currently disallows registrations.' ); + break; + case 'blog': + _e( 'The network currently allows site registrations.' ); + break; + case 'user': + _e( 'The network currently allows user registrations.' ); + break; + default: + _e( 'The network currently allows both site and user registrations.' ); + break; + } + + echo ' '; + + /* translators: %s: network settings URL */ + printf( __( 'To change or disable registration go to your Options page.' ), esc_url( network_admin_url( 'settings.php' ) ) ); + echo '
'; } $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;