@@ 2638-2645 (lines=8) @@ | ||
2635 | Jetpack::catch_errors( false ); |
|
2636 | ||
2637 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2638 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2639 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2640 | ||
2641 | //Jump start is being dismissed send data to MC Stats |
|
2642 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2643 | ||
2644 | $jetpack->do_stats( 'server_side' ); |
|
2645 | } |
|
2646 | ||
2647 | if ( $redirect ) { |
|
2648 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2676-2683 (lines=8) @@ | ||
2673 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2674 | ||
2675 | // A flag for Jump Start so it's not shown again. |
|
2676 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2677 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2678 | ||
2679 | //Jump start is being dismissed send data to MC Stats |
|
2680 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2681 | ||
2682 | $jetpack->do_stats( 'server_side' ); |
|
2683 | } |
|
2684 | ||
2685 | return self::update_active_modules( $new ); |
|
2686 | } |