Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3867-3881 (lines=15) @@
3864
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3865
				}
3866
				break;
3867
			case 'jetpack-manage-opt-out':
3868
3869
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3870
					// Don't show the banner again
3871
3872
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3873
					// redirect back to the page that had the notice
3874
					if ( wp_get_referer() ) {
3875
						wp_safe_redirect( wp_get_referer() );
3876
					} else {
3877
						// Take me to Jetpack
3878
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3879
					}
3880
				}
3881
				break;
3882
			case 'jetpack-protect-multisite-opt-out':
3883
3884
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3882-3896 (lines=15) @@
3879
					}
3880
				}
3881
				break;
3882
			case 'jetpack-protect-multisite-opt-out':
3883
3884
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3885
					// Don't show the banner again
3886
3887
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3888
					// redirect back to the page that had the notice
3889
					if ( wp_get_referer() ) {
3890
						wp_safe_redirect( wp_get_referer() );
3891
					} else {
3892
						// Take me to Jetpack
3893
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3894
					}
3895
				}
3896
				break;
3897
			case 'jetpack-manage-opt-in':
3898
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3899
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.