@@ 2814-2821 (lines=8) @@ | ||
2811 | Jetpack::catch_errors( false ); |
|
2812 | ||
2813 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2814 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2815 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2816 | ||
2817 | //Jump start is being dismissed send data to MC Stats |
|
2818 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2819 | ||
2820 | $jetpack->do_stats( 'server_side' ); |
|
2821 | } |
|
2822 | ||
2823 | if ( $redirect ) { |
|
2824 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2852-2859 (lines=8) @@ | ||
2849 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2850 | ||
2851 | // A flag for Jump Start so it's not shown again. |
|
2852 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2853 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2854 | ||
2855 | //Jump start is being dismissed send data to MC Stats |
|
2856 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2857 | ||
2858 | $jetpack->do_stats( 'server_side' ); |
|
2859 | } |
|
2860 | ||
2861 | return self::update_active_modules( $new ); |
|
2862 | } |