Changeset 4896 for trunk/includes/topics/functions.php
- Timestamp:
- 05/11/2013 06:10:20 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/topics/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/topics/functions.php
r4876 r4896 2341 2341 // Get replies of topic 2342 2342 if ( empty( $reply_count ) ) { 2343 $reply_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_parent = %d AND post_status IN ( '" . join( '\',\'', array( bbp_get_trash_status_id(), bbp_get_spam_status_id() ) ) . "') AND post_type = '%s';", $topic_id, bbp_get_reply_post_type() ) );2343 $reply_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_parent = %d AND post_status IN ( '" . implode( '\',\'', array( bbp_get_trash_status_id(), bbp_get_spam_status_id() ) ) . "') AND post_type = '%s';", $topic_id, bbp_get_reply_post_type() ) ); 2344 2344 } 2345 2345
Note: See TracChangeset
for help on using the changeset viewer.