Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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