[buddypress-trac] [BuddyPress Trac] #7362: Query only registered activity types like WP_Query does with post types

buddypress-trac noreply at wordpress.org
Fri Dec 2 03:56:35 UTC 2016


#7362: Query only registered activity types like WP_Query does with post types
-------------------------+-----------------------------
 Reporter:  Offereins    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Activity     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 This is great, @Offereins - Thanks for opening the ticket.

 Just to underscore what you've said above: I wouldn't want to make it
 impossible to query for items of a non-registered activity type. There are
 plenty of situations where you want and need to do such a thing (think:
 migrations). But it seems right to me that you would not query them by
 default.

 In addition, moving to an activity-type whitelist for queries will move us
 to a model where activity types can register themselves with certain
 permissions. Think of `exclude_from_search`, `publicly_queryable`, etc in
 WP.

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


More information about the buddypress-trac mailing list