Code Duplication    Length = 9-10 lines in 2 locations

src/wp-includes/post.php 2 locations

@@ 686-695 (lines=10) @@
683
 *
684
 * @return array List of post statuses.
685
 */
686
function get_post_statuses() {
687
	$status = array(
688
		'draft'   => __( 'Draft' ),
689
		'pending' => __( 'Pending Review' ),
690
		'private' => __( 'Private' ),
691
		'publish' => __( 'Published' )
692
	);
693
694
	return $status;
695
}
696
697
/**
698
 * Retrieve all of the WordPress support page statuses.
@@ 707-715 (lines=9) @@
704
 *
705
 * @return array List of page statuses.
706
 */
707
function get_page_statuses() {
708
	$status = array(
709
		'draft'   => __( 'Draft' ),
710
		'private' => __( 'Private' ),
711
		'publish' => __( 'Published' )
712
	);
713
714
	return $status;
715
}
716
717
/**
718
 * Register a post status. Do not use before init.