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