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