[buddypress-trac] [BuddyPress Trac] #6426: 'fields' => 'ids' for activity queries

buddypress-trac noreply at wordpress.org
Thu Oct 8 16:59:41 UTC 2015


#6426: 'fields' => 'ids' for activity queries
----------------------------------+---------------------------
 Reporter:  boonebgorges          |       Owner:  boonebgorges
     Type:  enhancement           |      Status:  closed
 Priority:  normal                |   Milestone:  2.4
Component:  Component - Activity  |     Version:
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch commit      |
----------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10217"]:
 {{{
 #!CommitTicketReference repository="" revision="10217"
 Introduce `fields` parameter to `bp_has_activities()` stack.

 `fields=ids` will fetch only the IDs of matched activities. `fields=all`
 (or any other value of `fields`, for the moment) will return full activity
 objects.

 The structure of the array returned from `BP_Activity_Activity::get()` is
 the
 same regardless of the value of `fields`: matched items are stored in the
 'activities' member of the returned array.

 Props r-a-y.
 Fixes #6426.
 }}}

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


More information about the buddypress-trac mailing list