lib/QueryIterator.php
public static function fix_cat_wp_quirk( $query ) {
		if ( isset($query->query) && isset($query->query['category'])
				&& !isset($query->query['cat']) ) {
			$query->set('cat', $query->query['category']);
			unset($query->query['category']);
		}
		return $query;
	}
public static function fix_cat_wp_quirk( $query ) {
		if ( isset($query->query) && isset($query->query['category'])
				&& !isset($query->query['cat']) ) {
			$query->set('cat', $query->query['category']);
			unset($query->query['category']);
		}
		return $query;
	}
public static function fix_cat_wp_quirk ( $ query ) { if ( isset ( $ query -> query ) && isset ( $ query -> query [ 'category' ] ) && ! isset ( $ query -> query [ 'cat' ] ) ) { $ query -> set ( 'cat' , $ query -> query [ 'category' ] ) ; unset ( $ query -> query [ 'category' ] ) ; } return $ query ; }
get_posts uses category, WP_Query uses cat. Why? who knows...
get_posts uses category WP_Query uses cat . Why? who knows ...