Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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