@@ 2611-2618 (lines=8) @@ | ||
2608 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2609 | ||
2610 | // A flag for Jump Start so it's not shown again. |
|
2611 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2612 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2613 | ||
2614 | //Jump start is being dismissed send data to MC Stats |
|
2615 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2616 | ||
2617 | $jetpack->do_stats( 'server_side' ); |
|
2618 | } |
|
2619 | ||
2620 | return self::update_active_modules( $new ); |
|
2621 | } |
|
@@ 2573-2580 (lines=8) @@ | ||
2570 | Jetpack::catch_errors( false ); |
|
2571 | ||
2572 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2573 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2574 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2575 | ||
2576 | //Jump start is being dismissed send data to MC Stats |
|
2577 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2578 | ||
2579 | $jetpack->do_stats( 'server_side' ); |
|
2580 | } |
|
2581 | ||
2582 | if ( $redirect ) { |
|
2583 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |