Changeset 6742
- Timestamp:
- 11/17/2017 09:13:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6741 r6742 650 650 $join = $clauses['join']; 651 651 652 // " %" and "$" are valid characters652 // "'", "%", "$" and are valid characters in email addresses 653 653 $where = $bbp_db->remove_placeholder_escape( $clauses['where'] ); 654 654 } … … 663 663 // Prepare duplicate check query 664 664 $query = "SELECT ID FROM {$bbp_db->posts} {$join}"; 665 $query 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'] ); 666 666 $query .= ! empty( $r['post_parent'] ) 667 667 ? $bbp_db->prepare( " AND post_parent = %d", $r['post_parent'] )
Note: See TracChangeset
for help on using the changeset viewer.