Skip to:
Content

BuddyPress.org

Changeset 9363


Ignore:
Timestamp:
01/15/2015 08:53:15 PM (6 years ago)
Author:
johnjamesjacoby
Message:

In bp_core_get_active_member_count() strictly compare to false allowing for 0 active members on new networks, avoiding excessively querying for active members when none exist yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r9362 r9363  
    715715    global $wpdb;
    716716
    717     if ( !$count = get_transient( 'bp_active_member_count' ) ) {
     717    $count = get_transient( 'bp_active_member_count' );
     718    if ( false === $count ) {
    718719        $bp = buddypress();
    719720
Note: See TracChangeset for help on using the changeset viewer.