Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 525-533 (lines=9) @@
522
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
523
			self::wp_query()->query_vars['orderby'] : '';
524
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
525
		switch ( $orderby ) {
526
			case 'modified':
527
				return $post->post_modified;
528
			case 'date':
529
			case '':
530
				return $post_date;
531
			default:
532
				return false;
533
		}
534
	}
535
536
	/**
@@ 550-558 (lines=9) @@
547
548
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
549
550
		switch ( $orderby ) {
551
			case 'modified':
552
				return 'post_modified';
553
			case 'date':
554
			case '':
555
				return 'post_date';
556
			default:
557
				return false;
558
		}
559
	}
560
561
	/**