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