Skip to content

Commit

Permalink
Make the signup type in the message for super admins translatable. Fi…
Browse files Browse the repository at this point in the history
…xes #13506.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
westi committed May 23, 2010
1 parent 26494e0 commit 574defb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wp-signup.php
Expand Up @@ -386,8 +386,14 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name = '', $user

$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"

// Make the signup type translatable.
$i18n_signup['all'] = _x('all', 'Mulitisite active signup type');
$i18n_signup['none'] = _x('none', 'Mulitisite active signup type');
$i18n_signup['blog'] = _x('blog', 'Mulitisite active signup type');
$i18n_signup['user'] = _x('user', 'Mulitisite active signup type');

if ( is_super_admin() )
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>.' ), $active_signup, esc_url( network_admin_url( 'ms-options.php' ) ) ) . '</div>';
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>';

$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;

Expand Down

0 comments on commit 574defb

Please sign in to comment.