Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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