@@ 2483-2490 (lines=8) @@ | ||
2480 | Jetpack::catch_errors( false ); |
|
2481 | ||
2482 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2483 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2484 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2485 | ||
2486 | //Jump start is being dismissed send data to MC Stats |
|
2487 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2488 | ||
2489 | $jetpack->do_stats( 'server_side' ); |
|
2490 | } |
|
2491 | ||
2492 | if ( $redirect ) { |
|
2493 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2521-2528 (lines=8) @@ | ||
2518 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2519 | ||
2520 | // A flag for Jump Start so it's not shown again. |
|
2521 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2522 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2523 | ||
2524 | //Jump start is being dismissed send data to MC Stats |
|
2525 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2526 | ||
2527 | $jetpack->do_stats( 'server_side' ); |
|
2528 | } |
|
2529 | ||
2530 | return self::update_active_modules( $new ); |
|
2531 | } |