x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.

Code Duplication    Length = 6-7 lines in 2 locations

_inc/class.jetpack-provision.php 1 location

@@ 242-247 (lines=6) @@
239
			? array( 'sso' )
240
			: array();
241
242
		if ( $active_modules = Jetpack_Options::get_option( 'active_modules' ) ) {
243
			Jetpack::delete_active_modules();
244
			Jetpack::activate_default_modules( 999, 1, array_merge( $active_modules, $other_modules ), false );
245
		} else {
246
			Jetpack::activate_default_modules( false, false, $other_modules, false );
247
		}
248
	}
249
250
	private static function verify_token( $access_token ) {

class.jetpack.php 1 location

@@ 7278-7284 (lines=7) @@
7275
			? array( 'sso' )
7276
			: array();
7277
7278
		if ( $active_modules = Jetpack_Options::get_option( 'active_modules' ) ) {
7279
			Jetpack::delete_active_modules();
7280
7281
			Jetpack::activate_default_modules( 999, 1, array_merge( $active_modules, $other_modules ), $redirect_on_activation_error, false );
7282
		} else {
7283
			Jetpack::activate_default_modules( false, false, $other_modules, $redirect_on_activation_error, false );
7284
		}
7285
7286
		// Since this is a fresh connection, be sure to clear out IDC options
7287
		Jetpack_IDC::clear_all_idc_options();