@@ 2561-2568 (lines=8) @@ | ||
2558 | Jetpack::catch_errors( false ); |
|
2559 | ||
2560 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2561 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2562 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2563 | ||
2564 | //Jump start is being dismissed send data to MC Stats |
|
2565 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2566 | ||
2567 | $jetpack->do_stats( 'server_side' ); |
|
2568 | } |
|
2569 | ||
2570 | if ( $redirect ) { |
|
2571 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2599-2606 (lines=8) @@ | ||
2596 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2597 | ||
2598 | // A flag for Jump Start so it's not shown again. |
|
2599 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2600 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2601 | ||
2602 | //Jump start is being dismissed send data to MC Stats |
|
2603 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2604 | ||
2605 | $jetpack->do_stats( 'server_side' ); |
|
2606 | } |
|
2607 | ||
2608 | return self::update_active_modules( $new ); |
|
2609 | } |