[buddypress-trac] [BuddyPress Trac] #5836: Creating a new user from the user-new admin screen generates notices

buddypress-trac noreply at wordpress.org
Sun Aug 24 16:05:29 UTC 2014


#5836: Creating a new user from the user-new admin screen generates notices
--------------------------+-----------------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XProfile      |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 On a regular config (WP 4.0), when i create a user, the function
 {{{xprofile_sync_bp_profile()}}} is trying to get :
 - $user->ID
 - $user->display_name

 Both are not yet set, in case of a user creation, as the
 {{{wp_insert_user()}}} happens a few lines after.

 I imagine it can be interesting in case of an edited user, but i find it
 weird to use this hook as it's a way to figure out if there are errors and
 it's not used this way.

 I suggest to include a check on these 2 variables.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5836>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list