Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3915-3929 (lines=15) @@
3912
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3913
				}
3914
				break;
3915
			case 'jetpack-manage-opt-out':
3916
3917
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3918
					// Don't show the banner again
3919
3920
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3921
					// redirect back to the page that had the notice
3922
					if ( wp_get_referer() ) {
3923
						wp_safe_redirect( wp_get_referer() );
3924
					} else {
3925
						// Take me to Jetpack
3926
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3927
					}
3928
				}
3929
				break;
3930
			case 'jetpack-protect-multisite-opt-out':
3931
3932
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3930-3944 (lines=15) @@
3927
					}
3928
				}
3929
				break;
3930
			case 'jetpack-protect-multisite-opt-out':
3931
3932
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3933
					// Don't show the banner again
3934
3935
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3936
					// redirect back to the page that had the notice
3937
					if ( wp_get_referer() ) {
3938
						wp_safe_redirect( wp_get_referer() );
3939
					} else {
3940
						// Take me to Jetpack
3941
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3942
					}
3943
				}
3944
				break;
3945
			case 'jetpack-manage-opt-in':
3946
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3947
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.