@@ 2603-2610 (lines=8) @@ | ||
2600 | Jetpack::catch_errors( false ); |
|
2601 | ||
2602 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2603 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2604 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2605 | ||
2606 | //Jump start is being dismissed send data to MC Stats |
|
2607 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2608 | ||
2609 | $jetpack->do_stats( 'server_side' ); |
|
2610 | } |
|
2611 | ||
2612 | if ( $redirect ) { |
|
2613 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2641-2648 (lines=8) @@ | ||
2638 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2639 | ||
2640 | // A flag for Jump Start so it's not shown again. |
|
2641 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2642 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2643 | ||
2644 | //Jump start is being dismissed send data to MC Stats |
|
2645 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2646 | ||
2647 | $jetpack->do_stats( 'server_side' ); |
|
2648 | } |
|
2649 | ||
2650 | return self::update_active_modules( $new ); |
|
2651 | } |