@@ 2786-2793 (lines=8) @@ | ||
2783 | Jetpack::catch_errors( false ); |
|
2784 | ||
2785 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2786 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2787 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2788 | ||
2789 | //Jump start is being dismissed send data to MC Stats |
|
2790 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2791 | ||
2792 | $jetpack->do_stats( 'server_side' ); |
|
2793 | } |
|
2794 | ||
2795 | if ( $redirect ) { |
|
2796 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2824-2831 (lines=8) @@ | ||
2821 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2822 | ||
2823 | // A flag for Jump Start so it's not shown again. |
|
2824 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2825 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2826 | ||
2827 | //Jump start is being dismissed send data to MC Stats |
|
2828 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2829 | ||
2830 | $jetpack->do_stats( 'server_side' ); |
|
2831 | } |
|
2832 | ||
2833 | return self::update_active_modules( $new ); |
|
2834 | } |