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