@@ 2759-2766 (lines=8) @@ | ||
2756 | Jetpack::catch_errors( false ); |
|
2757 | ||
2758 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2759 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2760 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2761 | ||
2762 | //Jump start is being dismissed send data to MC Stats |
|
2763 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2764 | ||
2765 | $jetpack->do_stats( 'server_side' ); |
|
2766 | } |
|
2767 | ||
2768 | if ( $redirect ) { |
|
2769 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2797-2804 (lines=8) @@ | ||
2794 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2795 | ||
2796 | // A flag for Jump Start so it's not shown again. |
|
2797 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2798 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2799 | ||
2800 | //Jump start is being dismissed send data to MC Stats |
|
2801 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2802 | ||
2803 | $jetpack->do_stats( 'server_side' ); |
|
2804 | } |
|
2805 | ||
2806 | return self::update_active_modules( $new ); |
|
2807 | } |