@@ 2961-2968 (lines=8) @@ | ||
2958 | Jetpack::catch_errors( false ); |
|
2959 | ||
2960 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2961 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2962 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2963 | ||
2964 | //Jump start is being dismissed send data to MC Stats |
|
2965 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2966 | ||
2967 | $jetpack->do_stats( 'server_side' ); |
|
2968 | } |
|
2969 | ||
2970 | if ( $redirect ) { |
|
2971 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2999-3006 (lines=8) @@ | ||
2996 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2997 | ||
2998 | // A flag for Jump Start so it's not shown again. |
|
2999 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3000 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3001 | ||
3002 | //Jump start is being dismissed send data to MC Stats |
|
3003 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3004 | ||
3005 | $jetpack->do_stats( 'server_side' ); |
|
3006 | } |
|
3007 | ||
3008 | return self::update_active_modules( $new ); |
|
3009 | } |