Trailing whitespace cleanup

git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-15 22:11:12 +00:00
parent 42292a8c4d
commit 8ef8b7bad5
59 changed files with 246 additions and 246 deletions
+8 -8
View File
@@ -189,14 +189,14 @@ function get_comments( $args = '' ) {
'author_email' => '',
'ID' => '',
'karma' => '',
'number' => '',
'offset' => '',
'orderby' => '',
'order' => 'DESC',
'number' => '',
'offset' => '',
'orderby' => '',
'order' => 'DESC',
'parent' => '',
'post_ID' => '',
'post_id' => 0,
'status' => '',
'status' => '',
'type' => '',
'user_id' => '',
);
@@ -235,7 +235,7 @@ function get_comments( $args = '' ) {
if ( ! empty( $orderby ) ) {
$ordersby = is_array($orderby) ? $orderby : preg_split('/[,\s]/', $orderby);
$ordersby = array_intersect(
$ordersby,
$ordersby,
array(
'comment_agent',
'comment_approved',
@@ -276,13 +276,13 @@ function get_comments( $args = '' ) {
if ( ! empty($post_id) )
$post_where .= $wpdb->prepare( 'comment_post_ID = %d AND ', $post_id );
if ( '' !== $author_email )
if ( '' !== $author_email )
$post_where .= $wpdb->prepare( 'comment_author_email = %s AND ', $author_email );
if ( '' !== $karma )
$post_where .= $wpdb->prepare( 'comment_karma = %d AND ', $karma );
if ( 'comment' == $type )
$post_where .= "comment_type = '' AND ";
elseif ( ! empty( $type ) )
elseif ( ! empty( $type ) )
$post_where .= $wpdb->prepare( 'comment_type = %s AND ', $type );
if ( '' !== $parent )
$post_where .= $wpdb->prepare( 'comment_parent = %d AND ', $parent );