Make WordPress Core

Ticket #17904: 17904.diff

File 17904.diff, 1.1 KB (added by martythornley, 11 years ago)
  • wp-includes/ms-default-filters.php

     
    1818add_action( 'init', 'maybe_add_existing_user_to_blog' );
    1919add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' );
    2020add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
    21 add_action( 'sanitize_user', 'strtolower' );
    2221
    2322// Blogs
    2423add_filter( 'wpmu_validate_blog_signup', 'signup_nonce_check' );
  • wp-includes/ms-functions.php

     
    433433        $user_name = preg_replace( '/\s+/', '', sanitize_user( $user_name, true ) );
    434434
    435435        if ( $user_name != $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) {
    436                 $errors->add( 'user_name', __( 'Only lowercase letters (a-z) and numbers are allowed.' ) );
     436                $errors->add( 'user_name', __( 'Invalid Username. Only Letters and numbers allowed.' ) );
    437437                $user_name = $orig_username;
    438438        }
    439439