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