Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 06:07:53 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Query variable and prepare() usage audit. See #4654. (1.6 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/bp-forums/bp-forums-filters.php

    r6557 r6575  
    156156 */
    157157function bp_forums_add_replied_distinct_sql( $sql ) {
    158     global $wpdb;
    159 
    160158    $sql = "DISTINCT t.topic_id, ";
    161159
     
    177175 */
    178176function bp_forums_add_replied_join_sql( $sql ) {
    179     global $bbdb, $wpdb;
     177    global $bbdb;
    180178
    181179    $sql .= " LEFT JOIN $bbdb->posts p ON p.topic_id = t.topic_id ";
Note: See TracChangeset for help on using the changeset viewer.