Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4460-4474 (lines=15) @@
4457
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4458
				}
4459
				break;
4460
			case 'jetpack-manage-opt-out':
4461
4462
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4463
					// Don't show the banner again
4464
4465
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4466
					// redirect back to the page that had the notice
4467
					if ( wp_get_referer() ) {
4468
						wp_safe_redirect( wp_get_referer() );
4469
					} else {
4470
						// Take me to Jetpack
4471
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4472
					}
4473
				}
4474
				break;
4475
			case 'jetpack-protect-multisite-opt-out':
4476
4477
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4475-4489 (lines=15) @@
4472
					}
4473
				}
4474
				break;
4475
			case 'jetpack-protect-multisite-opt-out':
4476
4477
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4478
					// Don't show the banner again
4479
4480
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4481
					// redirect back to the page that had the notice
4482
					if ( wp_get_referer() ) {
4483
						wp_safe_redirect( wp_get_referer() );
4484
					} else {
4485
						// Take me to Jetpack
4486
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4487
					}
4488
				}
4489
				break;
4490
			case 'jetpack-manage-opt-in':
4491
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4492
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.