@@ 2960-2967 (lines=8) @@ | ||
2957 | Jetpack::catch_errors( false ); |
|
2958 | ||
2959 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2960 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2961 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2962 | ||
2963 | //Jump start is being dismissed send data to MC Stats |
|
2964 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2965 | ||
2966 | $jetpack->do_stats( 'server_side' ); |
|
2967 | } |
|
2968 | ||
2969 | if ( $redirect ) { |
|
2970 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2998-3005 (lines=8) @@ | ||
2995 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2996 | ||
2997 | // A flag for Jump Start so it's not shown again. |
|
2998 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2999 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3000 | ||
3001 | //Jump start is being dismissed send data to MC Stats |
|
3002 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3003 | ||
3004 | $jetpack->do_stats( 'server_side' ); |
|
3005 | } |
|
3006 | ||
3007 | return self::update_active_modules( $new ); |
|
3008 | } |