Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4531-4545 (lines=15) @@
4528
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4529
				}
4530
				break;
4531
			case 'jetpack-manage-opt-out':
4532
4533
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4534
					// Don't show the banner again
4535
4536
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4537
					// redirect back to the page that had the notice
4538
					if ( wp_get_referer() ) {
4539
						wp_safe_redirect( wp_get_referer() );
4540
					} else {
4541
						// Take me to Jetpack
4542
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4543
					}
4544
				}
4545
				break;
4546
			case 'jetpack-protect-multisite-opt-out':
4547
4548
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4546-4560 (lines=15) @@
4543
					}
4544
				}
4545
				break;
4546
			case 'jetpack-protect-multisite-opt-out':
4547
4548
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4549
					// Don't show the banner again
4550
4551
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4552
					// redirect back to the page that had the notice
4553
					if ( wp_get_referer() ) {
4554
						wp_safe_redirect( wp_get_referer() );
4555
					} else {
4556
						// Take me to Jetpack
4557
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4558
					}
4559
				}
4560
				break;
4561
			case 'jetpack-manage-opt-in':
4562
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4563
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.