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