Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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