@@ 2781-2788 (lines=8) @@ | ||
2778 | Jetpack::catch_errors( false ); |
|
2779 | ||
2780 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2781 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2782 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2783 | ||
2784 | //Jump start is being dismissed send data to MC Stats |
|
2785 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2786 | ||
2787 | $jetpack->do_stats( 'server_side' ); |
|
2788 | } |
|
2789 | ||
2790 | if ( $redirect ) { |
|
2791 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2819-2826 (lines=8) @@ | ||
2816 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2817 | ||
2818 | // A flag for Jump Start so it's not shown again. |
|
2819 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2820 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2821 | ||
2822 | //Jump start is being dismissed send data to MC Stats |
|
2823 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2824 | ||
2825 | $jetpack->do_stats( 'server_side' ); |
|
2826 | } |
|
2827 | ||
2828 | return self::update_active_modules( $new ); |
|
2829 | } |