Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/17/2017 09:13:48 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Anonymous: cleanup from r6741.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6741 r6742  
    650650            $join  = $clauses['join'];
    651651
    652             // "%" and "$" are valid characters
     652            // "'", "%", "$" and are valid characters in email addresses
    653653            $where = $bbp_db->remove_placeholder_escape( $clauses['where'] );
    654654        }
     
    663663    // Prepare duplicate check query
    664664    $query  = "SELECT ID FROM {$bbp_db->posts} {$join}";
    665     $query  = $bbp_db->prepare( "WHERE post_type = %s AND post_status != %s AND post_author = %d AND post_content = %s", $r['post_type'], $r['post_status'], $r['post_author'], $r['post_content'] );
     665    $query .= $bbp_db->prepare( "WHERE post_type = %s AND post_status != %s AND post_author = %d AND post_content = %s", $r['post_type'], $r['post_status'], $r['post_author'], $r['post_content'] );
    666666    $query .= ! empty( $r['post_parent'] )
    667667        ? $bbp_db->prepare( " AND post_parent = %d", $r['post_parent'] )
Note: See TracChangeset for help on using the changeset viewer.