Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4666-4680 (lines=15) @@
4663
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4664
				}
4665
				break;
4666
			case 'jetpack-manage-opt-out':
4667
4668
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4669
					// Don't show the banner again
4670
4671
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4672
					// redirect back to the page that had the notice
4673
					if ( wp_get_referer() ) {
4674
						wp_safe_redirect( wp_get_referer() );
4675
					} else {
4676
						// Take me to Jetpack
4677
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4678
					}
4679
				}
4680
				break;
4681
			case 'jetpack-protect-multisite-opt-out':
4682
4683
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4681-4695 (lines=15) @@
4678
					}
4679
				}
4680
				break;
4681
			case 'jetpack-protect-multisite-opt-out':
4682
4683
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4684
					// Don't show the banner again
4685
4686
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4687
					// redirect back to the page that had the notice
4688
					if ( wp_get_referer() ) {
4689
						wp_safe_redirect( wp_get_referer() );
4690
					} else {
4691
						// Take me to Jetpack
4692
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4693
					}
4694
				}
4695
				break;
4696
			case 'jetpack-manage-opt-in':
4697
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4698
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.