@@ 2741-2748 (lines=8) @@ | ||
2738 | Jetpack::catch_errors( false ); |
|
2739 | ||
2740 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2741 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2742 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2743 | ||
2744 | //Jump start is being dismissed send data to MC Stats |
|
2745 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2746 | ||
2747 | $jetpack->do_stats( 'server_side' ); |
|
2748 | } |
|
2749 | ||
2750 | if ( $redirect ) { |
|
2751 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2779-2786 (lines=8) @@ | ||
2776 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2777 | ||
2778 | // A flag for Jump Start so it's not shown again. |
|
2779 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2780 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2781 | ||
2782 | //Jump start is being dismissed send data to MC Stats |
|
2783 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2784 | ||
2785 | $jetpack->do_stats( 'server_side' ); |
|
2786 | } |
|
2787 | ||
2788 | return self::update_active_modules( $new ); |
|
2789 | } |