@@ 2634-2641 (lines=8) @@ | ||
2631 | Jetpack::catch_errors( false ); |
|
2632 | ||
2633 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2634 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2635 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2636 | ||
2637 | //Jump start is being dismissed send data to MC Stats |
|
2638 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2639 | ||
2640 | $jetpack->do_stats( 'server_side' ); |
|
2641 | } |
|
2642 | ||
2643 | if ( $redirect ) { |
|
2644 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2672-2679 (lines=8) @@ | ||
2669 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2670 | ||
2671 | // A flag for Jump Start so it's not shown again. |
|
2672 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2673 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2674 | ||
2675 | //Jump start is being dismissed send data to MC Stats |
|
2676 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2677 | ||
2678 | $jetpack->do_stats( 'server_side' ); |
|
2679 | } |
|
2680 | ||
2681 | return self::update_active_modules( $new ); |
|
2682 | } |