[buddypress-trac] [BuddyPress Trac] #5809: Use displayed user ID in Extended Profile field groups
buddypress-trac
noreply at wordpress.org
Wed Aug 13 14:05:15 UTC 2014
#5809: Use displayed user ID in Extended Profile field groups
-------------------------+---------------------------
Reporter: Offereins | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 2.1
Component: XProfile | Version: 2.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------------
Comment (by Offereins):
@boonbgorges:
Just a brief side note: passing the proper 'user_id' here doesn't
actually make any functional difference as far as I can see. When
'fetch_fields=false', the user_id param is not looked at at all.
That said, it's still useful for plugins etc to have the proper user_id.
Indeed, that actually is the reason how I stumbled upon this issue:
developing my plugin, the filter in `bp_xprofile_get_groups()` had a
`$args['user_id']` value of 0 where I was wanting to know the right user
ID. So even though the user ID is not used in the function right there, it
has or may have a meaning further on in the chain of logic.
Thanks for the implementation and I'm glad my efforts are helpful :)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5809#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list