Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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