@@ 2860-2867 (lines=8) @@ | ||
2857 | Jetpack::catch_errors( false ); |
|
2858 | ||
2859 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2860 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2861 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2862 | ||
2863 | //Jump start is being dismissed send data to MC Stats |
|
2864 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2865 | ||
2866 | $jetpack->do_stats( 'server_side' ); |
|
2867 | } |
|
2868 | ||
2869 | if ( $redirect ) { |
|
2870 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2898-2905 (lines=8) @@ | ||
2895 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2896 | ||
2897 | // A flag for Jump Start so it's not shown again. |
|
2898 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2899 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2900 | ||
2901 | //Jump start is being dismissed send data to MC Stats |
|
2902 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2903 | ||
2904 | $jetpack->do_stats( 'server_side' ); |
|
2905 | } |
|
2906 | ||
2907 | return self::update_active_modules( $new ); |
|
2908 | } |