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