[buddypress-trac] [BuddyPress Trac] #5803: Query activity items by date

buddypress-trac noreply at wordpress.org
Mon Aug 11 15:13:23 UTC 2014


#5803: Query activity items by date
-------------------------+---------------------
 Reporter:  r-a-y        |       Owner:  r-a-y
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  2.1
Component:  Activity     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8787"]:
 {{{
 #!CommitTicketReference repository="" revision="8787"
 Add ability to query activity items by date.

 This commit:
 - Introduces the `BP_Date_Query` class.  This class extends
 `WP_Date_Query`, which will enable us to easily add support to query
 various BuddyPress items by date.
 - Adds a new `'date_query'` parameter to `BP_Activity_Activity::get()`.
 This parameter utilizes the new `BP_Date_Query` class and is an example of
 how to use the class in BuddyPress.  (Will add support for the Groups
 component in a later commit.)
 - Adds unit tests.

 Due to the dependency on the `WP_Date_Query` class, this functionality is
 only available in WordPress 3.7+.

 Fixes #5803.
 }}}

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


More information about the buddypress-trac mailing list