Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4183-4197 (lines=15) @@
4180
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4181
				}
4182
				break;
4183
			case 'jetpack-manage-opt-out':
4184
4185
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4186
					// Don't show the banner again
4187
4188
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4189
					// redirect back to the page that had the notice
4190
					if ( wp_get_referer() ) {
4191
						wp_safe_redirect( wp_get_referer() );
4192
					} else {
4193
						// Take me to Jetpack
4194
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4195
					}
4196
				}
4197
				break;
4198
			case 'jetpack-protect-multisite-opt-out':
4199
4200
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4198-4212 (lines=15) @@
4195
					}
4196
				}
4197
				break;
4198
			case 'jetpack-protect-multisite-opt-out':
4199
4200
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4201
					// Don't show the banner again
4202
4203
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4204
					// redirect back to the page that had the notice
4205
					if ( wp_get_referer() ) {
4206
						wp_safe_redirect( wp_get_referer() );
4207
					} else {
4208
						// Take me to Jetpack
4209
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4210
					}
4211
				}
4212
				break;
4213
			case 'jetpack-manage-opt-in':
4214
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4215
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.