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