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