Code Duplication    Length = 3-3 lines in 2 locations

wp-includes/query.php 2 locations

@@ 2980-2982 (lines=3) @@
2977
			}
2978
		} elseif ( 'none' == $q['orderby'] ) {
2979
			$orderby = '';
2980
		} elseif ( $q['orderby'] == 'post__in' && ! empty( $post__in ) ) {
2981
			$orderby = "FIELD( {$this->db->posts}.ID, $post__in )";
2982
		} elseif ( $q['orderby'] == 'post_parent__in' && ! empty( $post_parent__in ) ) {
2983
			$orderby = "FIELD( {$this->db->posts}.post_parent, $post_parent__in )";
2984
		} elseif ( $q['orderby'] == 'post_name__in' && ! empty( $post_name__in ) ) {
2985
			$orderby = "FIELD( {$this->db->posts}.post_name, $post_name__in )";
@@ 2984-2986 (lines=3) @@
2981
			$orderby = "FIELD( {$this->db->posts}.ID, $post__in )";
2982
		} elseif ( $q['orderby'] == 'post_parent__in' && ! empty( $post_parent__in ) ) {
2983
			$orderby = "FIELD( {$this->db->posts}.post_parent, $post_parent__in )";
2984
		} elseif ( $q['orderby'] == 'post_name__in' && ! empty( $post_name__in ) ) {
2985
			$orderby = "FIELD( {$this->db->posts}.post_name, $post_name__in )";
2986
		} else {
2987
			$orderby_array = array();
2988
			if ( is_array( $q['orderby'] ) ) {
2989
				foreach ( $q['orderby'] as $_orderby => $order ) {