Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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