Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3885-3899 (lines=15) @@
3882
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3883
				}
3884
				break;
3885
			case 'jetpack-manage-opt-out':
3886
3887
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3888
					// Don't show the banner again
3889
3890
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3891
					// redirect back to the page that had the notice
3892
					if ( wp_get_referer() ) {
3893
						wp_safe_redirect( wp_get_referer() );
3894
					} else {
3895
						// Take me to Jetpack
3896
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3897
					}
3898
				}
3899
				break;
3900
			case 'jetpack-protect-multisite-opt-out':
3901
3902
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3900-3914 (lines=15) @@
3897
					}
3898
				}
3899
				break;
3900
			case 'jetpack-protect-multisite-opt-out':
3901
3902
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3903
					// Don't show the banner again
3904
3905
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3906
					// redirect back to the page that had the notice
3907
					if ( wp_get_referer() ) {
3908
						wp_safe_redirect( wp_get_referer() );
3909
					} else {
3910
						// Take me to Jetpack
3911
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3912
					}
3913
				}
3914
				break;
3915
			case 'jetpack-manage-opt-in':
3916
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3917
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.