Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3843-3857 (lines=15) @@
3840
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3841
				}
3842
				break;
3843
			case 'jetpack-manage-opt-out':
3844
3845
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3846
					// Don't show the banner again
3847
3848
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3849
					// redirect back to the page that had the notice
3850
					if ( wp_get_referer() ) {
3851
						wp_safe_redirect( wp_get_referer() );
3852
					} else {
3853
						// Take me to Jetpack
3854
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3855
					}
3856
				}
3857
				break;
3858
			case 'jetpack-protect-multisite-opt-out':
3859
3860
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3858-3872 (lines=15) @@
3855
					}
3856
				}
3857
				break;
3858
			case 'jetpack-protect-multisite-opt-out':
3859
3860
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3861
					// Don't show the banner again
3862
3863
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3864
					// redirect back to the page that had the notice
3865
					if ( wp_get_referer() ) {
3866
						wp_safe_redirect( wp_get_referer() );
3867
					} else {
3868
						// Take me to Jetpack
3869
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3870
					}
3871
				}
3872
				break;
3873
			case 'jetpack-manage-opt-in':
3874
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3875
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.