Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 534-542 (lines=9) @@
531
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
532
			self::wp_query()->query_vars['orderby'] : '';
533
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
534
		switch ( $orderby ) {
535
			case 'modified':
536
				return $post->post_modified;
537
			case 'date':
538
			case '':
539
				return $post_date;
540
			default:
541
				return false;
542
		}
543
	}
544
545
	/**
@@ 559-567 (lines=9) @@
556
557
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
558
559
		switch ( $orderby ) {
560
			case 'modified':
561
				return 'post_modified';
562
			case 'date':
563
			case '':
564
				return 'post_date';
565
			default:
566
				return false;
567
		}
568
	}
569
570
	/**