Changeset 10789
- Timestamp:
- 05/19/2016 05:47:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-notification.php
r10303 r10789 630 630 * @type int $per_page Number of items to show per page. Default: 631 631 * false (no pagination - all items). 632 * @type array $meta_query Array of meta_query conditions. See WP_Meta_Query::queries. 633 * @type array $date_query Array of date_query conditions. See first parameter of 634 * WP_Date_Query::__construct(). 635 * @type bool $update_meta_cache Whether to update meta cache. Default: true. 632 636 * } 633 637 * @return array Located notifications. … … 682 686 $sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} {$order_sql} {$pag_sql}"; 683 687 684 return $wpdb->get_results( $sql ); 688 $results = $wpdb->get_results( $sql ); 689 690 // Update meta cache. 691 if ( true === $r['update_meta_cache'] ) { 692 bp_notifications_update_meta_cache( wp_list_pluck( $results, 'id' ) ); 693 } 694 695 return $results; 685 696 } 686 697
Note: See TracChangeset
for help on using the changeset viewer.