[buddypress-trac] [BuddyPress] #4362: Registration Page Has Pre-Populated Fields

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jul 18 19:04:39 UTC 2012


#4362: Registration Page Has Pre-Populated  Fields
--------------------------+-----------------------
 Reporter:  shanebp       |       Owner:  DJPaul
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  1.6
Component:  XProfile      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by DJPaul):

 The problem is easy to recreate if you change the user_id column to 0, of
 a record in the bp_xprofile_data table. I cannot find a way of deleting a
 user through wp-admin that, instead of deleting the user's profile data,
 does an UPDATE and sets the user_id to 0. That part we may have to come
 back to in the future/1.7 when we have more time to investigate.

 4362.01.patch stops fetching xprofile data when user_id = 0. This was
 caused by bp_displayed_user_id() returning zero if no user is displayed or
 logged in. Suggest this for branch and trunk.

 I tried to do something like this in the update_1_6() function to tidy up
 orphaned xprofile data, but most of BuddyPress isn't loaded. Maybe for a
 future release?

 {{{
                 // Delete orphaned xprofile data. See #4362.
                 if ( bp_is_active( 'xprofile' ) )
                         BP_XProfile_ProfileData::delete_data_for_user( 0
 );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4362#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list