[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:30:42 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 StijnDeWitt):
Hi Boone, I can work now and do what I need. I will just do the same
change on the current version of BP that we have and refer to this ticket.
At the risk of nagging, I want to respond once more on the
difference/similarity of handling the `$usermeta` paramater to the
`bp_core_signup_user` function.
You say:
'''''"On MS, the data is stored in the wp_signups table so that it can be
used after activation."'''''
And yes, I see this happening as `$usermeta` is passed on to the call to
`wpmu_signup_user`. This happens ''unconditionally'', it does not matter
whether you use xprofile or not, and it uses ''all'' values from
`$usermeta`.
'''''"On non-MS, BP uses the $usermeta values *right away*"'''''
And here is what I don't get. If this line in `bp_core_signup_user`
returns `false`:
`if ( bp_is_active( 'xprofile' ) ) {`
then how are the `$usermeta` values ever used?
In my mind, in MS sites, `$usermeta` is ''always'' used, ''completely''.
In non-ms sites, it is ''only'' used if you use xprofile, and even in that
case ''only'' the usermeta for key `profile_field_ids`.
Probably I am completely confused, but it sounds to me like your
description of what is happening in non-MS mode is exactly the opposite
from what is happening in reality... If I'm wrong, then can you tell me by
what mechanism the `$usermeta` is used in non-MS sites when xprofile is
not used or there are no values in `$usermeta` with key
`profile_field_ids`? I can't find how they would ever make their way into
the created user's meta?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5481#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list