WordPress.org

WordPress MU

Changeset 1689


Ignore:
Timestamp:
03/05/09 11:56:35 (5 years ago)
Author:
donncha
Message:

Make sure usernames and blogname are all lowercase, fixes #920, thanks Gigalinux for reminding me!

Location:
branches/2.7/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/wpmu-default-filters.php

    r1558 r1689  
    77add_action ( 'wpmu_new_user', 'newuser_notify_siteadmin' ); 
    88add_action ( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 ); 
     9add_action ( 'sanitize_user', 'strtolower_usernames', 10, 3 ); 
    910 
    1011// Blogs 
  • branches/2.7/wp-includes/wpmu-functions.php

    r1674 r1689  
    21512151include( ABSPATH . WPINC . '/wordpress-admin-bar/wordpress-admin-bar.php' ); 
    21522152 
     2153function strtolower_usernames( $username, $raw, $strict ) { 
     2154    return strtolower( $username ); 
     2155} 
     2156 
    21532157// update_plugins 
    21542158function site_pre_update_plugins() { 
Note: See TracChangeset for help on using the changeset viewer.