@@ 2929-2936 (lines=8) @@ | ||
2926 | Jetpack::catch_errors( false ); |
|
2927 | ||
2928 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2929 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2930 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2931 | ||
2932 | //Jump start is being dismissed send data to MC Stats |
|
2933 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2934 | ||
2935 | $jetpack->do_stats( 'server_side' ); |
|
2936 | } |
|
2937 | ||
2938 | if ( $redirect ) { |
|
2939 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2967-2974 (lines=8) @@ | ||
2964 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2965 | ||
2966 | // A flag for Jump Start so it's not shown again. |
|
2967 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2968 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2969 | ||
2970 | //Jump start is being dismissed send data to MC Stats |
|
2971 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2972 | ||
2973 | $jetpack->do_stats( 'server_side' ); |
|
2974 | } |
|
2975 | ||
2976 | return self::update_active_modules( $new ); |
|
2977 | } |