Skip to:
Content

BuddyPress.org

Changeset 7535


Ignore:
Timestamp:
11/08/2013 06:15:20 AM (11 years ago)
Author:
johnjamesjacoby
Message:

In BP_Notifications_Notification::get() add clause for is_new to allow not-new notifications to be queried. See #5148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-classes.php

    r7525 r7535  
    317317        if ( ! empty( $args['is_new'] ) ) {
    318318            $where_conditions['is_new'] = "is_new = 1";
     319        } elseif ( ( 0 === $args['is_new'] ) || ( false === $args['is_new'] ) ) {
     320            $where_conditions['is_new'] = "is_new = 0";
    319321        }
    320322
Note: See TracChangeset for help on using the changeset viewer.