@@ 2314-2321 (lines=8) @@ | ||
2311 | Jetpack::catch_errors( false ); |
|
2312 | ||
2313 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2314 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2315 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2316 | ||
2317 | //Jump start is being dismissed send data to MC Stats |
|
2318 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2319 | ||
2320 | $jetpack->do_stats( 'server_side' ); |
|
2321 | } |
|
2322 | ||
2323 | if ( $redirect ) { |
|
2324 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2352-2359 (lines=8) @@ | ||
2349 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2350 | ||
2351 | // A flag for Jump Start so it's not shown again. |
|
2352 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2353 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2354 | ||
2355 | //Jump start is being dismissed send data to MC Stats |
|
2356 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2357 | ||
2358 | $jetpack->do_stats( 'server_side' ); |
|
2359 | } |
|
2360 | ||
2361 | return self::update_active_modules( $new ); |
|
2362 | } |