Code Duplication    Length = 5-5 lines in 2 locations

_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php 2 locations

@@ 1001-1005 (lines=5) @@
998
					'post_status'   => 'publish',
999
					'post_author'   => $author,
1000
				) );
1001
				if ( 0 == $home ) {
1002
					$error[] = 'home insert: 0';
1003
				} elseif ( is_wp_error( $home ) ) {
1004
					$error[] = 'home creation: '. $home->get_error_message();
1005
				}
1006
				if ( ! ( update_option( 'page_on_front', $home ) || get_option( 'page_on_front' ) == $home ) ) {
1007
					$error[] = 'home set';
1008
				}
@@ 1018-1022 (lines=5) @@
1015
					'post_status'   => 'publish',
1016
					'post_author'   => $author,
1017
				) );
1018
				if ( 0 == $blog ) {
1019
					$error[] = 'blog insert: 0';
1020
				} elseif ( is_wp_error( $blog ) ) {
1021
					$error[] = 'blog creation: '. $blog->get_error_message();
1022
				}
1023
				if ( ! ( update_option( 'page_for_posts', $blog ) || get_option( 'page_for_posts' ) == $blog ) ) {
1024
					$error[] = 'blog set';
1025
				}