Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4580-4594 (lines=15) @@
4577
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4578
				}
4579
				break;
4580
			case 'jetpack-manage-opt-out':
4581
4582
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4583
					// Don't show the banner again
4584
4585
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4586
					// redirect back to the page that had the notice
4587
					if ( wp_get_referer() ) {
4588
						wp_safe_redirect( wp_get_referer() );
4589
					} else {
4590
						// Take me to Jetpack
4591
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4592
					}
4593
				}
4594
				break;
4595
			case 'jetpack-protect-multisite-opt-out':
4596
4597
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4595-4609 (lines=15) @@
4592
					}
4593
				}
4594
				break;
4595
			case 'jetpack-protect-multisite-opt-out':
4596
4597
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4598
					// Don't show the banner again
4599
4600
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4601
					// redirect back to the page that had the notice
4602
					if ( wp_get_referer() ) {
4603
						wp_safe_redirect( wp_get_referer() );
4604
					} else {
4605
						// Take me to Jetpack
4606
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4607
					}
4608
				}
4609
				break;
4610
			case 'jetpack-manage-opt-in':
4611
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4612
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.