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