Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2011 03:06:13 PM (13 years ago)
Author:
boonebgorges
Message:

Reworks the way that total topic counts are retrieved on user forum pages. See #3557

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-filters.php

    r5093 r5129  
    201201    $sql .= $wpdb->prepare( " AND p.poster_id = %s ", bp_displayed_user_id() );
    202202
     203    // Remove any topic_author information
     204    $sql = str_replace( " AND t.topic_poster = '" . bp_displayed_user_id() . "'", '', $sql );
     205
    203206    return $sql;
    204207}
Note: See TracChangeset for help on using the changeset viewer.