Skip to:
Content

BuddyPress.org

Changeset 7695


Ignore:
Timestamp:
12/17/2013 07:12:05 PM (11 years ago)
Author:
boonebgorges
Message:

Adjust notification total_count for null component_value.

This ensures that total counts are correct when BP is assuming we only want
notifications from active components.

Props imath for an initial patch

Fixes #5300

File:
1 edited

Legend:

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

    r7686 r7695  
    613613        global $wpdb;
    614614
     615        $bp = buddypress();
     616
     617        $args = wp_parse_args( $args, array(
     618            'component_name' => array_keys( $bp->active_components ),
     619        ) );
     620
    615621        $bp         = buddypress();
    616622        $select_sql = "SELECT COUNT(*)";
Note: See TracChangeset for help on using the changeset viewer.