@@ 2366-2373 (lines=8) @@ | ||
2363 | Jetpack::catch_errors( false ); |
|
2364 | ||
2365 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2366 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2367 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2368 | ||
2369 | //Jump start is being dismissed send data to MC Stats |
|
2370 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2371 | ||
2372 | $jetpack->do_stats( 'server_side' ); |
|
2373 | } |
|
2374 | ||
2375 | if ( $redirect ) { |
|
2376 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2404-2411 (lines=8) @@ | ||
2401 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2402 | ||
2403 | // A flag for Jump Start so it's not shown again. |
|
2404 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2405 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2406 | ||
2407 | //Jump start is being dismissed send data to MC Stats |
|
2408 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2409 | ||
2410 | $jetpack->do_stats( 'server_side' ); |
|
2411 | } |
|
2412 | ||
2413 | return self::update_active_modules( $new ); |
|
2414 | } |