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