Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4076-4090 (lines=15) @@
4073
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4074
				}
4075
				break;
4076
			case 'jetpack-manage-opt-out':
4077
4078
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4079
					// Don't show the banner again
4080
4081
					Jetpack_Options::update_option( 'dismissed_manage_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-protect-multisite-opt-out':
4092
4093
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4091-4105 (lines=15) @@
4088
					}
4089
				}
4090
				break;
4091
			case 'jetpack-protect-multisite-opt-out':
4092
4093
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4094
					// Don't show the banner again
4095
4096
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4097
					// redirect back to the page that had the notice
4098
					if ( wp_get_referer() ) {
4099
						wp_safe_redirect( wp_get_referer() );
4100
					} else {
4101
						// Take me to Jetpack
4102
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4103
					}
4104
				}
4105
				break;
4106
			case 'jetpack-manage-opt-in':
4107
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4108
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.