@@ 2316-2323 (lines=8) @@ | ||
2313 | Jetpack::catch_errors( false ); |
|
2314 | ||
2315 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2316 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2317 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2318 | ||
2319 | //Jump start is being dismissed send data to MC Stats |
|
2320 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2321 | ||
2322 | $jetpack->do_stats( 'server_side' ); |
|
2323 | } |
|
2324 | ||
2325 | if ( $redirect ) { |
|
2326 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2354-2361 (lines=8) @@ | ||
2351 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2352 | ||
2353 | // A flag for Jump Start so it's not shown again. |
|
2354 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2355 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2356 | ||
2357 | //Jump start is being dismissed send data to MC Stats |
|
2358 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2359 | ||
2360 | $jetpack->do_stats( 'server_side' ); |
|
2361 | } |
|
2362 | ||
2363 | return self::update_active_modules( $new ); |
|
2364 | } |