@@ 2700-2707 (lines=8) @@ | ||
2697 | Jetpack::catch_errors( false ); |
|
2698 | ||
2699 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2700 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2701 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2702 | ||
2703 | //Jump start is being dismissed send data to MC Stats |
|
2704 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2705 | ||
2706 | $jetpack->do_stats( 'server_side' ); |
|
2707 | } |
|
2708 | ||
2709 | if ( $redirect ) { |
|
2710 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2738-2745 (lines=8) @@ | ||
2735 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2736 | ||
2737 | // A flag for Jump Start so it's not shown again. |
|
2738 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2739 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2740 | ||
2741 | //Jump start is being dismissed send data to MC Stats |
|
2742 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2743 | ||
2744 | $jetpack->do_stats( 'server_side' ); |
|
2745 | } |
|
2746 | ||
2747 | return self::update_active_modules( $new ); |
|
2748 | } |