Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4067-4081 (lines=15) @@
4064
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4065
				}
4066
				break;
4067
			case 'jetpack-manage-opt-out':
4068
4069
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4070
					// Don't show the banner again
4071
4072
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4073
					// redirect back to the page that had the notice
4074
					if ( wp_get_referer() ) {
4075
						wp_safe_redirect( wp_get_referer() );
4076
					} else {
4077
						// Take me to Jetpack
4078
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4079
					}
4080
				}
4081
				break;
4082
			case 'jetpack-protect-multisite-opt-out':
4083
4084
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4082-4096 (lines=15) @@
4079
					}
4080
				}
4081
				break;
4082
			case 'jetpack-protect-multisite-opt-out':
4083
4084
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4085
					// Don't show the banner again
4086
4087
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4088
					// redirect back to the page that had the notice
4089
					if ( wp_get_referer() ) {
4090
						wp_safe_redirect( wp_get_referer() );
4091
					} else {
4092
						// Take me to Jetpack
4093
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4094
					}
4095
				}
4096
				break;
4097
			case 'jetpack-manage-opt-in':
4098
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4099
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.