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

buddypress-trac noreply at wordpress.org
Tue Aug 18 20:19:13 UTC 2015


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

Comment (by r-a-y):

 > Hm. The purpose of 'has_more_items' was (originally, at least) to
 support our AJAX-powered "Load More" button. Anyone fetching only ids is
 surely not using this interface.

 Yeah, I'm not really sold on adding `'has_more_items'` when `'fields=ids'`
 is in use either.  Was just bringing up as a scenario.

 I'd be happy to stick with a plain activity IDs array in this case.  But,
 a dev would need to do the following to fetch all activity IDs:

 {{{
 bp_activity_get( array(
     'fields' => 'ids',
     'per_page' => 0,
     ...
 ) );
 }}}

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


More information about the buddypress-trac mailing list