Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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