Code Duplication    Length = 2-2 lines in 2 locations

wp-admin/includes/post.php 2 locations

@@ 96-97 (lines=2) @@
93
	}
94
95
	// What to do based on which button they pressed
96
	if ( isset($post_data['saveasdraft']) && '' != $post_data['saveasdraft'] )
97
		$post_data['post_status'] = 'draft';
98
	if ( isset($post_data['saveasprivate']) && '' != $post_data['saveasprivate'] )
99
		$post_data['post_status'] = 'private';
100
	if ( isset($post_data['publish']) && ( '' != $post_data['publish'] ) && ( !isset($post_data['post_status']) || $post_data['post_status'] != 'private' ) )
@@ 102-103 (lines=2) @@
99
		$post_data['post_status'] = 'private';
100
	if ( isset($post_data['publish']) && ( '' != $post_data['publish'] ) && ( !isset($post_data['post_status']) || $post_data['post_status'] != 'private' ) )
101
		$post_data['post_status'] = 'publish';
102
	if ( isset($post_data['advanced']) && '' != $post_data['advanced'] )
103
		$post_data['post_status'] = 'draft';
104
	if ( isset($post_data['pending']) && '' != $post_data['pending'] )
105
		$post_data['post_status'] = 'pending';
106