@@ 2539-2546 (lines=8) @@ | ||
2536 | Jetpack::catch_errors( false ); |
|
2537 | ||
2538 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2539 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2540 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2541 | ||
2542 | //Jump start is being dismissed send data to MC Stats |
|
2543 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2544 | ||
2545 | $jetpack->do_stats( 'server_side' ); |
|
2546 | } |
|
2547 | ||
2548 | if ( $redirect ) { |
|
2549 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2577-2584 (lines=8) @@ | ||
2574 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2575 | ||
2576 | // A flag for Jump Start so it's not shown again. |
|
2577 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2578 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2579 | ||
2580 | //Jump start is being dismissed send data to MC Stats |
|
2581 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2582 | ||
2583 | $jetpack->do_stats( 'server_side' ); |
|
2584 | } |
|
2585 | ||
2586 | return self::update_active_modules( $new ); |
|
2587 | } |