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