Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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