Changeset 7951 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 02/21/2014 02:49:28 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r7906 r7951 455 455 * between components/types. Accepts a single ID, or an array of 456 456 * multiple IDs. Defaults to false. 457 * @type int $offset Return only activity items with an ID greater than or 458 * equal to this one. Note that providing an offset will disable 459 * pagination. Default: false. 457 460 * @type string|bool $display_comments How to handle activity comments. 458 461 * Possible values: … … 544 547 'primary_id' => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 545 548 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id 549 'offset' => false, // return only items >= this ID 546 550 547 551 'meta_query' => false, // filter on activity meta. See WP_Meta_Query for format … … 560 564 if ( in_array( $display_comments, array( 0, '0', 'none', 'false' ), true ) ) { 561 565 $display_comments = false; 566 } 567 568 // Ignore pagination if an offset is passed 569 if ( ! empty( $offset ) ) { 570 $page = 0; 562 571 } 563 572 … … 633 642 if ( isset( $_GET['afilter'] ) && apply_filters( 'bp_activity_enable_afilter_support', false ) ) 634 643 $filter = array( 'object' => $_GET['afilter'] ); 635 else if ( ! empty( $user_id ) || !empty( $object ) || !empty( $action ) || !empty( $primary_id ) || !empty( $secondary_id) )636 $filter = array( 'user_id' => $user_id, 'object' => $object, 'action' => $action, 'primary_id' => $primary_id, 'secondary_id' => $secondary_id );644 else if ( ! empty( $user_id ) || ! empty( $object ) || ! empty( $action ) || ! empty( $primary_id ) || ! empty( $secondary_id ) || ! empty( $offset ) ) 645 $filter = array( 'user_id' => $user_id, 'object' => $object, 'action' => $action, 'primary_id' => $primary_id, 'secondary_id' => $secondary_id, 'offset' => $offset ); 637 646 else 638 647 $filter = false;
Note: See TracChangeset
for help on using the changeset viewer.