Code Duplication    Length = 6-6 lines in 3 locations

class.jetpack.php 3 locations

@@ 1844-1849 (lines=6) @@
1841
		}
1842
1843
		$version = Jetpack_Options::get_option( 'version' );
1844
		if ( ! $version ) {
1845
			$version = $old_version = JETPACK__VERSION . ':' . time();
1846
			/** This action is documented in class.jetpack.php */
1847
			do_action( 'updating_jetpack_version', $version, false );
1848
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
1849
		}
1850
		list( $version ) = explode( ':', $version );
1851
1852
		$modules = array_filter( Jetpack::get_active_modules(), array( 'Jetpack', 'is_module' ) );
@@ 2230-2235 (lines=6) @@
2227
		}
2228
2229
		$jetpack_old_version = Jetpack_Options::get_option( 'version' ); // [sic]
2230
		if ( ! $jetpack_old_version ) {
2231
			$jetpack_old_version = $version = $old_version = '1.1:' . time();
2232
			/** This action is documented in class.jetpack.php */
2233
			do_action( 'updating_jetpack_version', $version, false );
2234
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
2235
		}
2236
2237
		list( $jetpack_version ) = explode( ':', $jetpack_old_version ); // [sic]
2238
@@ 3197-3202 (lines=6) @@
3194
			Jetpack_Options::update_option( 'activated', 2 );
3195
		}
3196
3197
		if ( ! Jetpack_Options::get_option( 'version' ) ) {
3198
			$version = $old_version = JETPACK__VERSION . ':' . time();
3199
			/** This action is documented in class.jetpack.php */
3200
			do_action( 'updating_jetpack_version', $version, false );
3201
			Jetpack_Options::update_options( compact( 'version', 'old_version' ) );
3202
		}
3203
3204
		Jetpack::load_modules();
3205