@@ 2489-2496 (lines=8) @@ | ||
2486 | Jetpack::catch_errors( false ); |
|
2487 | ||
2488 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2489 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2490 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2491 | ||
2492 | //Jump start is being dismissed send data to MC Stats |
|
2493 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2494 | ||
2495 | $jetpack->do_stats( 'server_side' ); |
|
2496 | } |
|
2497 | ||
2498 | if ( $redirect ) { |
|
2499 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2527-2534 (lines=8) @@ | ||
2524 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2525 | ||
2526 | // A flag for Jump Start so it's not shown again. |
|
2527 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2528 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2529 | ||
2530 | //Jump start is being dismissed send data to MC Stats |
|
2531 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2532 | ||
2533 | $jetpack->do_stats( 'server_side' ); |
|
2534 | } |
|
2535 | ||
2536 | return self::update_active_modules( $new ); |
|
2537 | } |