@@ 2712-2719 (lines=8) @@ | ||
2709 | Jetpack::catch_errors( false ); |
|
2710 | ||
2711 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2712 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2713 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2714 | ||
2715 | //Jump start is being dismissed send data to MC Stats |
|
2716 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2717 | ||
2718 | $jetpack->do_stats( 'server_side' ); |
|
2719 | } |
|
2720 | ||
2721 | if ( $redirect ) { |
|
2722 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2750-2757 (lines=8) @@ | ||
2747 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2748 | ||
2749 | // A flag for Jump Start so it's not shown again. |
|
2750 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2751 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2752 | ||
2753 | //Jump start is being dismissed send data to MC Stats |
|
2754 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2755 | ||
2756 | $jetpack->do_stats( 'server_side' ); |
|
2757 | } |
|
2758 | ||
2759 | return self::update_active_modules( $new ); |
|
2760 | } |