Code Duplication    Length = 3-3 lines in 3 locations

json-endpoints/class.wpcom-json-api-list-posts-endpoint.php 1 location

@@ 284-286 (lines=3) @@
281
		 * use it there.
282
		 */
283
		$column_whitelist = array( 'post_modified_gmt' );
284
		if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) {
285
			$query['column'] = $args['column'];
286
		}
287
288
		$wp_query = new WP_Query( $query );
289
		if ( $this->date_range ) {

json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php 1 location

@@ 335-337 (lines=3) @@
332
		 * use it there.
333
		 */
334
		$column_whitelist = array( 'post_modified_gmt' );
335
		if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) {
336
			$query['column'] = $args['column'];
337
		}
338
339
		$this->performed_query = $query;
340
		add_filter( 'posts_orderby', array( $this, 'handle_orderby_for_page_handle' ) );

json-endpoints/class.wpcom-json-api-list-posts-v1-2-endpoint.php 1 location

@@ 329-331 (lines=3) @@
326
		 * use it there.
327
		 */
328
		$column_whitelist = array( 'post_modified_gmt' );
329
		if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) {
330
			$query['column'] = $args['column'];
331
		}
332
333
		$this->performed_query = $query;
334
		add_filter( 'posts_orderby', array( $this, 'handle_orderby_for_page_handle' ) );