@@ 2551-2558 (lines=8) @@ | ||
2548 | Jetpack::catch_errors( false ); |
|
2549 | ||
2550 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2551 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2552 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2553 | ||
2554 | //Jump start is being dismissed send data to MC Stats |
|
2555 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2556 | ||
2557 | $jetpack->do_stats( 'server_side' ); |
|
2558 | } |
|
2559 | ||
2560 | if ( $redirect ) { |
|
2561 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2589-2596 (lines=8) @@ | ||
2586 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2587 | ||
2588 | // A flag for Jump Start so it's not shown again. |
|
2589 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2590 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2591 | ||
2592 | //Jump start is being dismissed send data to MC Stats |
|
2593 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2594 | ||
2595 | $jetpack->do_stats( 'server_side' ); |
|
2596 | } |
|
2597 | ||
2598 | return self::update_active_modules( $new ); |
|
2599 | } |