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