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