@@ 2373-2380 (lines=8) @@ | ||
2370 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2371 | ||
2372 | // A flag for Jump Start so it's not shown again. |
|
2373 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2374 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2375 | ||
2376 | //Jump start is being dismissed send data to MC Stats |
|
2377 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2378 | ||
2379 | $jetpack->do_stats( 'server_side' ); |
|
2380 | } |
|
2381 | ||
2382 | return self::update_active_modules( $new ); |
|
2383 | } |
|
@@ 2335-2342 (lines=8) @@ | ||
2332 | Jetpack::catch_errors( false ); |
|
2333 | ||
2334 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2335 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2336 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2337 | ||
2338 | //Jump start is being dismissed send data to MC Stats |
|
2339 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2340 | ||
2341 | $jetpack->do_stats( 'server_side' ); |
|
2342 | } |
|
2343 | ||
2344 | if ( $redirect ) { |
|
2345 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |