Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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