Changeset 12733 for trunk/wp-includes/comment.php
- Timestamp:
- 01/15/2010 10:11:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r12680 r12733 190 190 'ID' => '', 191 191 'karma' => '', 192 'number' => '', 193 'offset' => '', 194 'orderby' => '', 195 'order' => 'DESC', 192 'number' => '', 193 'offset' => '', 194 'orderby' => '', 195 'order' => 'DESC', 196 196 'parent' => '', 197 197 'post_ID' => '', 198 198 'post_id' => 0, 199 'status' => '', 199 'status' => '', 200 200 'type' => '', 201 201 'user_id' => '', … … 236 236 $ordersby = is_array($orderby) ? $orderby : preg_split('/[,\s]/', $orderby); 237 237 $ordersby = array_intersect( 238 $ordersby, 238 $ordersby, 239 239 array( 240 240 'comment_agent', … … 277 277 if ( ! empty($post_id) ) 278 278 $post_where .= $wpdb->prepare( 'comment_post_ID = %d AND ', $post_id ); 279 if ( '' !== $author_email ) 279 if ( '' !== $author_email ) 280 280 $post_where .= $wpdb->prepare( 'comment_author_email = %s AND ', $author_email ); 281 281 if ( '' !== $karma ) … … 283 283 if ( 'comment' == $type ) 284 284 $post_where .= "comment_type = '' AND "; 285 elseif ( ! empty( $type ) ) 285 elseif ( ! empty( $type ) ) 286 286 $post_where .= $wpdb->prepare( 'comment_type = %s AND ', $type ); 287 287 if ( '' !== $parent )
Note: See TracChangeset
for help on using the changeset viewer.