@@ 2689-2696 (lines=8) @@ | ||
2686 | Jetpack::catch_errors( false ); |
|
2687 | ||
2688 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2689 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2690 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2691 | ||
2692 | //Jump start is being dismissed send data to MC Stats |
|
2693 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2694 | ||
2695 | $jetpack->do_stats( 'server_side' ); |
|
2696 | } |
|
2697 | ||
2698 | if ( $redirect ) { |
|
2699 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2727-2734 (lines=8) @@ | ||
2724 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2725 | ||
2726 | // A flag for Jump Start so it's not shown again. |
|
2727 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2728 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2729 | ||
2730 | //Jump start is being dismissed send data to MC Stats |
|
2731 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2732 | ||
2733 | $jetpack->do_stats( 'server_side' ); |
|
2734 | } |
|
2735 | ||
2736 | return self::update_active_modules( $new ); |
|
2737 | } |