Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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