Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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