@@ 2658-2665 (lines=8) @@ | ||
2655 | Jetpack::catch_errors( false ); |
|
2656 | ||
2657 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2658 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2659 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2660 | ||
2661 | //Jump start is being dismissed send data to MC Stats |
|
2662 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2663 | ||
2664 | $jetpack->do_stats( 'server_side' ); |
|
2665 | } |
|
2666 | ||
2667 | if ( $redirect ) { |
|
2668 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2696-2703 (lines=8) @@ | ||
2693 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2694 | ||
2695 | // A flag for Jump Start so it's not shown again. |
|
2696 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2697 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2698 | ||
2699 | //Jump start is being dismissed send data to MC Stats |
|
2700 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2701 | ||
2702 | $jetpack->do_stats( 'server_side' ); |
|
2703 | } |
|
2704 | ||
2705 | return self::update_active_modules( $new ); |
|
2706 | } |