Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4631-4645 (lines=15) @@
4628
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4629
				}
4630
				break;
4631
			case 'jetpack-manage-opt-out':
4632
4633
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4634
					// Don't show the banner again
4635
4636
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4637
					// redirect back to the page that had the notice
4638
					if ( wp_get_referer() ) {
4639
						wp_safe_redirect( wp_get_referer() );
4640
					} else {
4641
						// Take me to Jetpack
4642
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4643
					}
4644
				}
4645
				break;
4646
			case 'jetpack-protect-multisite-opt-out':
4647
4648
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4646-4660 (lines=15) @@
4643
					}
4644
				}
4645
				break;
4646
			case 'jetpack-protect-multisite-opt-out':
4647
4648
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4649
					// Don't show the banner again
4650
4651
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4652
					// redirect back to the page that had the notice
4653
					if ( wp_get_referer() ) {
4654
						wp_safe_redirect( wp_get_referer() );
4655
					} else {
4656
						// Take me to Jetpack
4657
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4658
					}
4659
				}
4660
				break;
4661
			case 'jetpack-manage-opt-in':
4662
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4663
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.