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