Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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