Code Duplication    Length = 6-6 lines in 3 locations

class.jetpack.php 3 locations

@@ 1436-1441 (lines=6) @@
1433
		}
1434
1435
		$version = Jetpack_Options::get_option( 'version' );
1436
		if ( ! $version ) {
1437
			$version = $old_version = JETPACK__VERSION . ':' . time();
1438
			/** This action is documented in class.jetpack.php */
1439
			do_action( 'updating_jetpack_version', $version, false );
1440
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
1441
		}
1442
		list( $version ) = explode( ':', $version );
1443
1444
		$modules = array_filter( Jetpack::get_active_modules(), array( 'Jetpack', 'is_module' ) );
@@ 1843-1848 (lines=6) @@
1840
		}
1841
1842
		$jetpack_old_version = Jetpack_Options::get_option( 'version' ); // [sic]
1843
		if ( ! $jetpack_old_version ) {
1844
			$jetpack_old_version = $version = $old_version = '1.1:' . time();
1845
			/** This action is documented in class.jetpack.php */
1846
			do_action( 'updating_jetpack_version', $version, false );
1847
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
1848
		}
1849
1850
		list( $jetpack_version ) = explode( ':', $jetpack_old_version ); // [sic]
1851
@@ 2642-2647 (lines=6) @@
2639
			Jetpack_Options::update_option( 'activated', 2 );
2640
		}
2641
2642
		if ( ! Jetpack_Options::get_option( 'version' ) ) {
2643
			$version = $old_version = JETPACK__VERSION . ':' . time();
2644
			/** This action is documented in class.jetpack.php */
2645
			do_action( 'updating_jetpack_version', $version, false );
2646
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
2647
		}
2648
2649
		Jetpack::load_modules();
2650