Code Duplication    Length = 6-6 lines in 3 locations

class.jetpack.php 3 locations

@@ 1701-1706 (lines=6) @@
1698
		}
1699
1700
		$version = Jetpack_Options::get_option( 'version' );
1701
		if ( ! $version ) {
1702
			$version = $old_version = JETPACK__VERSION . ':' . time();
1703
			/** This action is documented in class.jetpack.php */
1704
			do_action( 'updating_jetpack_version', $version, false );
1705
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
1706
		}
1707
		list( $version ) = explode( ':', $version );
1708
1709
		$modules = array_filter( Jetpack::get_active_modules(), array( 'Jetpack', 'is_module' ) );
@@ 2087-2092 (lines=6) @@
2084
		}
2085
2086
		$jetpack_old_version = Jetpack_Options::get_option( 'version' ); // [sic]
2087
		if ( ! $jetpack_old_version ) {
2088
			$jetpack_old_version = $version = $old_version = '1.1:' . time();
2089
			/** This action is documented in class.jetpack.php */
2090
			do_action( 'updating_jetpack_version', $version, false );
2091
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
2092
		}
2093
2094
		list( $jetpack_version ) = explode( ':', $jetpack_old_version ); // [sic]
2095
@@ 3004-3009 (lines=6) @@
3001
			Jetpack_Options::update_option( 'activated', 2 );
3002
		}
3003
3004
		if ( ! Jetpack_Options::get_option( 'version' ) ) {
3005
			$version = $old_version = JETPACK__VERSION . ':' . time();
3006
			/** This action is documented in class.jetpack.php */
3007
			do_action( 'updating_jetpack_version', $version, false );
3008
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
3009
		}
3010
3011
		Jetpack::load_modules();
3012