From 699b250926438aa9afe970b885b4ecbda90275b9 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 22 Feb 2008 20:48:28 +0000 Subject: [PATCH] Small code formatting tweak git-svn-id: http://svn.automattic.com/wordpress/trunk@6986 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 4d81d4baa..fccc82836 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1190,10 +1190,9 @@ class WP_Query { if ( in_array($orderby_array[$i], $allowed_keys) ) $q['orderby'] .= (($i == 0) ? '' : ',') . $orderby; } - /* append ASC or DESC at the end */ - if ( !empty($q['orderby'])){ + // append ASC or DESC at the end + if ( !empty($q['orderby'])) $q['orderby'] .= " {$q['order']}"; - } if ( empty($q['orderby']) ) $q['orderby'] = 'post_date '.$q['order'];