Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 559-567 (lines=9) @@
556
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
557
			self::wp_query()->query_vars['orderby'] : '';
558
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
559
		switch ( $orderby ) {
560
			case 'modified':
561
				return $post->post_modified;
562
			case 'date':
563
			case '':
564
				return $post_date;
565
			default:
566
				return false;
567
		}
568
	}
569
570
	/**
@@ 584-592 (lines=9) @@
581
582
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
583
584
		switch ( $orderby ) {
585
			case 'modified':
586
				return 'post_modified';
587
			case 'date':
588
			case '':
589
				return 'post_date';
590
			default:
591
				return false;
592
		}
593
	}
594
595
	/**