Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4083-4097 (lines=15) @@
4080
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4081
				}
4082
				break;
4083
			case 'jetpack-manage-opt-out':
4084
4085
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4086
					// Don't show the banner again
4087
4088
					Jetpack_Options::update_option( 'dismissed_manage_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-protect-multisite-opt-out':
4099
4100
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4098-4112 (lines=15) @@
4095
					}
4096
				}
4097
				break;
4098
			case 'jetpack-protect-multisite-opt-out':
4099
4100
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4101
					// Don't show the banner again
4102
4103
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4104
					// redirect back to the page that had the notice
4105
					if ( wp_get_referer() ) {
4106
						wp_safe_redirect( wp_get_referer() );
4107
					} else {
4108
						// Take me to Jetpack
4109
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4110
					}
4111
				}
4112
				break;
4113
			case 'jetpack-manage-opt-in':
4114
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4115
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.