Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4546-4560 (lines=15) @@
4543
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4544
				}
4545
				break;
4546
			case 'jetpack-manage-opt-out':
4547
4548
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4549
					// Don't show the banner again
4550
4551
					Jetpack_Options::update_option( 'dismissed_manage_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-protect-multisite-opt-out':
4562
4563
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4561-4575 (lines=15) @@
4558
					}
4559
				}
4560
				break;
4561
			case 'jetpack-protect-multisite-opt-out':
4562
4563
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4564
					// Don't show the banner again
4565
4566
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4567
					// redirect back to the page that had the notice
4568
					if ( wp_get_referer() ) {
4569
						wp_safe_redirect( wp_get_referer() );
4570
					} else {
4571
						// Take me to Jetpack
4572
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4573
					}
4574
				}
4575
				break;
4576
			case 'jetpack-manage-opt-in':
4577
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4578
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.