@@ 2674-2681 (lines=8) @@ | ||
2671 | Jetpack::catch_errors( false ); |
|
2672 | ||
2673 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2674 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2675 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2676 | ||
2677 | //Jump start is being dismissed send data to MC Stats |
|
2678 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2679 | ||
2680 | $jetpack->do_stats( 'server_side' ); |
|
2681 | } |
|
2682 | ||
2683 | if ( $redirect ) { |
|
2684 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2712-2719 (lines=8) @@ | ||
2709 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2710 | ||
2711 | // A flag for Jump Start so it's not shown again. |
|
2712 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2713 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2714 | ||
2715 | //Jump start is being dismissed send data to MC Stats |
|
2716 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2717 | ||
2718 | $jetpack->do_stats( 'server_side' ); |
|
2719 | } |
|
2720 | ||
2721 | return self::update_active_modules( $new ); |
|
2722 | } |