Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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