Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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