Code Duplication    Length = 6-6 lines in 3 locations

class.jetpack.php 3 locations

@@ 3290-3295 (lines=6) @@
3287
			Jetpack_Options::update_option( 'activated', 2 );
3288
		}
3289
3290
		if ( ! Jetpack_Options::get_option( 'version' ) ) {
3291
			$version = $old_version = JETPACK__VERSION . ':' . time();
3292
			/** This action is documented in class.jetpack.php */
3293
			do_action( 'updating_jetpack_version', $version, false );
3294
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
3295
		}
3296
3297
		self::load_modules();
3298
@@ 2249-2254 (lines=6) @@
2246
		}
2247
2248
		$jetpack_old_version = Jetpack_Options::get_option( 'version' ); // [sic]
2249
		if ( ! $jetpack_old_version ) {
2250
			$jetpack_old_version = $version = $old_version = '1.1:' . time();
2251
			/** This action is documented in class.jetpack.php */
2252
			do_action( 'updating_jetpack_version', $version, false );
2253
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
2254
		}
2255
2256
		list( $jetpack_version ) = explode( ':', $jetpack_old_version ); // [sic]
2257
@@ 1873-1878 (lines=6) @@
1870
		}
1871
1872
		$version = Jetpack_Options::get_option( 'version' );
1873
		if ( ! $version ) {
1874
			$version = $old_version = JETPACK__VERSION . ':' . time();
1875
			/** This action is documented in class.jetpack.php */
1876
			do_action( 'updating_jetpack_version', $version, false );
1877
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
1878
		}
1879
		list( $version ) = explode( ':', $version );
1880
1881
		$modules = array_filter( self::get_active_modules(), array( 'Jetpack', 'is_module' ) );