@@ 2909-2916 (lines=8) @@ | ||
2906 | Jetpack::catch_errors( false ); |
|
2907 | ||
2908 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2909 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2910 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2911 | ||
2912 | //Jump start is being dismissed send data to MC Stats |
|
2913 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2914 | ||
2915 | $jetpack->do_stats( 'server_side' ); |
|
2916 | } |
|
2917 | ||
2918 | if ( $redirect ) { |
|
2919 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2947-2954 (lines=8) @@ | ||
2944 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2945 | ||
2946 | // A flag for Jump Start so it's not shown again. |
|
2947 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2948 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2949 | ||
2950 | //Jump start is being dismissed send data to MC Stats |
|
2951 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2952 | ||
2953 | $jetpack->do_stats( 'server_side' ); |
|
2954 | } |
|
2955 | ||
2956 | return self::update_active_modules( $new ); |
|
2957 | } |