Ticket #17904: 17904.diff
File 17904.diff, 1.1 KB (added by , 11 years ago) |
---|
-
wp-includes/ms-default-filters.php
18 18 add_action( 'init', 'maybe_add_existing_user_to_blog' ); 19 19 add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' ); 20 20 add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 ); 21 add_action( 'sanitize_user', 'strtolower' );22 21 23 22 // Blogs 24 23 add_filter( 'wpmu_validate_blog_signup', 'signup_nonce_check' ); -
wp-includes/ms-functions.php
433 433 $user_name = preg_replace( '/\s+/', '', sanitize_user( $user_name, true ) ); 434 434 435 435 if ( $user_name != $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) { 436 $errors->add( 'user_name', __( ' Only lowercase letters (a-z) and numbers areallowed.' ) );436 $errors->add( 'user_name', __( 'Invalid Username. Only Letters and numbers allowed.' ) ); 437 437 $user_name = $orig_username; 438 438 } 439 439