[buddypress-trac] [BuddyPress Trac] #5481: Buddypress should set user meta for single sites in bp_core_signup_user

buddypress-trac noreply at wordpress.org
Mon Mar 31 12:50:13 UTC 2014


#5481: Buddypress should set user meta for single sites in bp_core_signup_user
--------------------------+---------------------
 Reporter:  StijnDeWitt   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.0
Component:  Core          |     Version:  1.9.2
 Severity:  minor         |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------

Comment (by boonebgorges):

 > In my mind, in MS sites, $usermeta is always used, completely.

 This is not true. I think the variable name `$usermeta` is confusing you.
 It doesn't have anything to do with the wp_usermeta table. It's just a
 generic bucket for data that is provided at signup but cannot be used
 until after the user is created. On MS - without BP installed - it's used
 to store the registrant's chosed blog URL, blog name, and the privacy
 setting of the newly created blog. See `wpmu_create_blog()`. It is never
 inserted into `wp_usermeta`.

 BuddyPress uses this generic bucket to store xprofile data provided by the
 user at registration. When the user account is activated (immediately on
 non-MS, after the activation link is clicked on MS), we take any xprofile
 data from that bucket and store it in our xprofile db tables. If xprofile
 is not active, there is nothing to do.

 One bit that you are correct about is that, in the case of non-MS, the
 value of `$usermeta` is not stored in the database. It's "faked" by BP
 just to match MS's default behavior, and once it's used, it's immediately
 discarded. (There's no blog URL, etc to store anyway.) But, again, note
 that this will change in BP 2.0, when all signups are treated in the way
 that MS treats them currently.

 To reemphasize: the `$usermeta` values here are *never* stored to
 `wp_usermeta`. It's a confusing naming convention.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5481#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list