Ticket #1475: bbpress_user_with_spaces.patch
File bbpress_user_with_spaces.patch, 559 bytes (added by , 14 years ago) |
---|
-
bbp-includes/bbp-general-functions.php
745 745 746 746 // It is a user page (most probably), we'll also check if it is user edit 747 747 748 if ( !is_numeric( $bbp_user ) ) { 749 $bbp_user = get_user_by( 'slug', $bbp_user ); 750 if ( is_object( $bbp_user ) ) 751 $bbp_user = $bbp_user->ID; 752 } 753 748 754 // Create new user 749 755 $user = new WP_User( $bbp_user ); 750 756