Skip to:
Content

BuddyPress.org

Changeset 1061


Ignore:
Timestamp:
02/11/2009 07:52:16 PM (15 years ago)
Author:
apeatling
Message:

Fixes #471

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1052 r1061  
    12971297
    12981298/**
     1299 * bp_core_ucfirst()
     1300 *
     1301 * Strips spaces from usernames that are created using add_user() and wp_insert_user()
     1302 *
     1303 * @package BuddyPress Core
     1304 */
     1305function bp_core_strip_username_spaces( $username ) {
     1306    return str_replace( ' ', '', $username );
     1307}
     1308add_action( 'pre_user_login', 'bp_core_strip_username_spaces' );
     1309
     1310/**
    12991311 * bp_core_clear_cache()
    13001312 * REQUIRES WP-SUPER-CACHE
Note: See TracChangeset for help on using the changeset viewer.