Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/class-wp-xmlrpc-server.php 2 locations

@@ 1416-1419 (lines=4) @@
1413
			case 'draft':
1414
			case 'pending':
1415
				break;
1416
			case 'private':
1417
				if ( ! current_user_can( $post_type->cap->publish_posts ) )
1418
					return new IXR_Error( 401, __( 'Sorry, you are not allowed to create private posts in this post type.' ) );
1419
				break;
1420
			case 'publish':
1421
			case 'future':
1422
				if ( ! current_user_can( $post_type->cap->publish_posts ) )
@@ 1421-1424 (lines=4) @@
1418
					return new IXR_Error( 401, __( 'Sorry, you are not allowed to create private posts in this post type.' ) );
1419
				break;
1420
			case 'publish':
1421
			case 'future':
1422
				if ( ! current_user_can( $post_type->cap->publish_posts ) )
1423
					return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish posts in this post type.' ) );
1424
				break;
1425
			default:
1426
				if ( ! get_post_status_object( $post_data['post_status'] ) )
1427
					$post_data['post_status'] = 'draft';