Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4263-4277 (lines=15) @@
4260
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4261
				}
4262
				break;
4263
			case 'jetpack-manage-opt-out':
4264
4265
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4266
					// Don't show the banner again
4267
4268
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4269
					// redirect back to the page that had the notice
4270
					if ( wp_get_referer() ) {
4271
						wp_safe_redirect( wp_get_referer() );
4272
					} else {
4273
						// Take me to Jetpack
4274
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4275
					}
4276
				}
4277
				break;
4278
			case 'jetpack-protect-multisite-opt-out':
4279
4280
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4278-4292 (lines=15) @@
4275
					}
4276
				}
4277
				break;
4278
			case 'jetpack-protect-multisite-opt-out':
4279
4280
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4281
					// Don't show the banner again
4282
4283
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4284
					// redirect back to the page that had the notice
4285
					if ( wp_get_referer() ) {
4286
						wp_safe_redirect( wp_get_referer() );
4287
					} else {
4288
						// Take me to Jetpack
4289
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4290
					}
4291
				}
4292
				break;
4293
			case 'jetpack-manage-opt-in':
4294
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4295
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.