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