Code Duplication    Length = 6-6 lines in 3 locations

class.jetpack.php 3 locations

@@ 1843-1848 (lines=6) @@
1840
		}
1841
1842
		$version = Jetpack_Options::get_option( 'version' );
1843
		if ( ! $version ) {
1844
			$version = $old_version = JETPACK__VERSION . ':' . 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
		list( $version ) = explode( ':', $version );
1850
1851
		$modules = array_filter( Jetpack::get_active_modules(), array( 'Jetpack', 'is_module' ) );
@@ 2229-2234 (lines=6) @@
2226
		}
2227
2228
		$jetpack_old_version = Jetpack_Options::get_option( 'version' ); // [sic]
2229
		if ( ! $jetpack_old_version ) {
2230
			$jetpack_old_version = $version = $old_version = '1.1:' . time();
2231
			/** This action is documented in class.jetpack.php */
2232
			do_action( 'updating_jetpack_version', $version, false );
2233
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
2234
		}
2235
2236
		list( $jetpack_version ) = explode( ':', $jetpack_old_version ); // [sic]
2237
@@ 3211-3216 (lines=6) @@
3208
			Jetpack_Options::update_option( 'activated', 2 );
3209
		}
3210
3211
		if ( ! Jetpack_Options::get_option( 'version' ) ) {
3212
			$version = $old_version = JETPACK__VERSION . ':' . time();
3213
			/** This action is documented in class.jetpack.php */
3214
			do_action( 'updating_jetpack_version', $version, false );
3215
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
3216
		}
3217
3218
		Jetpack::load_modules();
3219