Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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