Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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