@@ 2396-2403 (lines=8) @@ | ||
2393 | Jetpack::catch_errors( false ); |
|
2394 | ||
2395 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2396 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2397 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2398 | ||
2399 | //Jump start is being dismissed send data to MC Stats |
|
2400 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2401 | ||
2402 | $jetpack->do_stats( 'server_side' ); |
|
2403 | } |
|
2404 | ||
2405 | if ( $redirect ) { |
|
2406 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2434-2441 (lines=8) @@ | ||
2431 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2432 | ||
2433 | // A flag for Jump Start so it's not shown again. |
|
2434 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2435 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2436 | ||
2437 | //Jump start is being dismissed send data to MC Stats |
|
2438 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2439 | ||
2440 | $jetpack->do_stats( 'server_side' ); |
|
2441 | } |
|
2442 | ||
2443 | return self::update_active_modules( $new ); |
|
2444 | } |