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