Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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