Make WordPress Core

Changeset 14821


Ignore:
Timestamp:
05/23/2010 09:05:04 PM (15 years ago)
Author:
westi
Message:

Make the signup type in the message for super admins translatable. Fixes #13506.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r14704 r14821  
    387387$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
    388388
     389// Make the signup type translatable.
     390$i18n_signup['all'] = _x('all', 'Mulitisite active signup type');
     391$i18n_signup['none'] = _x('none', 'Mulitisite active signup type');
     392$i18n_signup['blog'] = _x('blog', 'Mulitisite active signup type');
     393$i18n_signup['user'] = _x('user', 'Mulitisite active signup type');
     394
    389395if ( is_super_admin() )
    390     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>';
     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>';
    391397
    392398$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
Note: See TracChangeset for help on using the changeset viewer.