Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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