Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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