Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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