Changeset 7709
- Timestamp:
- 12/18/2013 10:07:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-classes.php
r7707 r7709 613 613 global $wpdb; 614 614 615 $bp = buddypress(); 615 // Load BuddyPress 616 $bp = buddypress(); 617 618 /** 619 * Default component_name to active_components 620 * 621 * @see http://buddypress.trac.wordpress.org/ticket/5300 622 */ 623 $args = wp_parse_args( $args, array( 'component_name' => array_keys( $bp->active_components ) ) ); 624 625 // Build the query 616 626 $select_sql = "SELECT COUNT(*)"; 617 627 $from_sql = "FROM {$bp->notifications->table_name}"; … … 619 629 $sql = "{$select_sql} {$from_sql} {$where_sql}"; 620 630 631 // Return the queried results 621 632 return $wpdb->get_var( $sql ); 622 633 }
Note: See TracChangeset
for help on using the changeset viewer.