Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3897-3911 (lines=15) @@
3894
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3895
				}
3896
				break;
3897
			case 'jetpack-manage-opt-out':
3898
3899
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3900
					// Don't show the banner again
3901
3902
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3903
					// redirect back to the page that had the notice
3904
					if ( wp_get_referer() ) {
3905
						wp_safe_redirect( wp_get_referer() );
3906
					} else {
3907
						// Take me to Jetpack
3908
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3909
					}
3910
				}
3911
				break;
3912
			case 'jetpack-protect-multisite-opt-out':
3913
3914
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3912-3926 (lines=15) @@
3909
					}
3910
				}
3911
				break;
3912
			case 'jetpack-protect-multisite-opt-out':
3913
3914
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3915
					// Don't show the banner again
3916
3917
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3918
					// redirect back to the page that had the notice
3919
					if ( wp_get_referer() ) {
3920
						wp_safe_redirect( wp_get_referer() );
3921
					} else {
3922
						// Take me to Jetpack
3923
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3924
					}
3925
				}
3926
				break;
3927
			case 'jetpack-manage-opt-in':
3928
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3929
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.