Changeset 7006 for trunk/src/includes/common/functions.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6974 r7006 177 177 // Is the post by an anonymous user? 178 178 if ( ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) ) || 179 179 ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) ) ) { 180 180 return $data; 181 181 } … … 223 223 $lockable = "+{$minutes} minutes"; 224 224 if ( true === $utc ) { 225 $lockable .= " UTC";225 $lockable .= ' UTC'; 226 226 } 227 227 … … 714 714 // Prepare duplicate check query 715 715 $query = "SELECT ID FROM {$bbp_db->posts} {$join}"; 716 $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'] );716 $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'] ); 717 717 $query .= ! empty( $r['post_parent'] ) 718 ? $bbp_db->prepare( " AND post_parent = %d", $r['post_parent'] )718 ? $bbp_db->prepare( ' AND post_parent = %d', $r['post_parent'] ) 719 719 : ''; 720 720 $query .= $where; 721 $query .= " LIMIT 1";721 $query .= ' LIMIT 1'; 722 722 $dupe = apply_filters( 'bbp_check_for_duplicate_query', $query, $r ); 723 723 … … 1149 1149 // Custom headers 1150 1150 $headers = apply_filters( 'bbp_subscription_mail_headers', $headers ); 1151 1151 $to_email = apply_filters( 'bbp_subscription_to_email', $no_reply ); 1152 1152 1153 1153 // Before … … 2448 2448 $the_query = array( 2449 2449 'posts_per_page' => bbp_get_replies_per_rss_page(), 2450 'meta_query' => array( array( 2450 'meta_query' => array( array() ), 2451 2451 'feed' => true 2452 2452 );
Note: See TracChangeset
for help on using the changeset viewer.