Changeset 8167 for trunk/bp-notifications/bp-notifications-classes.php
- Timestamp:
- 03/26/2014 10:55:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-classes.php
r8154 r8167 320 320 321 321 // is_new 322 if ( ! empty( $args['is_new'] ) ) { 323 $where_conditions['is_new'] = "is_new = 1"; 324 } elseif ( isset( $args['is_new'] ) && ( 0 === $args['is_new'] || false === $args['is_new'] ) ) { 325 $where_conditions['is_new'] = "is_new = 0"; 322 if ( 'both' !== $args['is_new'] ) { 323 if ( ! empty( $args['is_new'] ) ) { 324 $where_conditions['is_new'] = "is_new = 1"; 325 } elseif ( isset( $args['is_new'] ) && ( 0 === $args['is_new'] || false === $args['is_new'] ) ) { 326 $where_conditions['is_new'] = "is_new = 0"; 327 } 326 328 } 327 329 … … 538 540 * @type string|array $component_action Name of the action to 539 541 * filter by. Can be an array of actions. 540 * @type bool $is_new Whether to limit the query to is_new (unread) 541 * notifications. Default: true. 542 * @type bool $is_new Whether to limit to new notifications. True 543 * returns only new notifications, false returns only non-new 544 * notifications. 'both' returns all. Default: true. 542 545 * @type string $search_terms Term to match against component_name 543 546 * or component_action fields.
Note: See TracChangeset
for help on using the changeset viewer.