@@ 2747-2754 (lines=8) @@ | ||
2744 | Jetpack::catch_errors( false ); |
|
2745 | ||
2746 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2747 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2748 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2749 | ||
2750 | //Jump start is being dismissed send data to MC Stats |
|
2751 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2752 | ||
2753 | $jetpack->do_stats( 'server_side' ); |
|
2754 | } |
|
2755 | ||
2756 | if ( $redirect ) { |
|
2757 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2785-2792 (lines=8) @@ | ||
2782 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2783 | ||
2784 | // A flag for Jump Start so it's not shown again. |
|
2785 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2786 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2787 | ||
2788 | //Jump start is being dismissed send data to MC Stats |
|
2789 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2790 | ||
2791 | $jetpack->do_stats( 'server_side' ); |
|
2792 | } |
|
2793 | ||
2794 | return self::update_active_modules( $new ); |
|
2795 | } |