@@ 2467-2474 (lines=8) @@ | ||
2464 | Jetpack::catch_errors( false ); |
|
2465 | ||
2466 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2467 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2468 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2469 | ||
2470 | //Jump start is being dismissed send data to MC Stats |
|
2471 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2472 | ||
2473 | $jetpack->do_stats( 'server_side' ); |
|
2474 | } |
|
2475 | ||
2476 | if ( $redirect ) { |
|
2477 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2505-2512 (lines=8) @@ | ||
2502 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2503 | ||
2504 | // A flag for Jump Start so it's not shown again. |
|
2505 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2506 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2507 | ||
2508 | //Jump start is being dismissed send data to MC Stats |
|
2509 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2510 | ||
2511 | $jetpack->do_stats( 'server_side' ); |
|
2512 | } |
|
2513 | ||
2514 | return self::update_active_modules( $new ); |
|
2515 | } |