Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3909-3923 (lines=15) @@
3906
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3907
				}
3908
				break;
3909
			case 'jetpack-manage-opt-out':
3910
3911
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3912
					// Don't show the banner again
3913
3914
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3915
					// redirect back to the page that had the notice
3916
					if ( wp_get_referer() ) {
3917
						wp_safe_redirect( wp_get_referer() );
3918
					} else {
3919
						// Take me to Jetpack
3920
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3921
					}
3922
				}
3923
				break;
3924
			case 'jetpack-protect-multisite-opt-out':
3925
3926
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3924-3938 (lines=15) @@
3921
					}
3922
				}
3923
				break;
3924
			case 'jetpack-protect-multisite-opt-out':
3925
3926
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3927
					// Don't show the banner again
3928
3929
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3930
					// redirect back to the page that had the notice
3931
					if ( wp_get_referer() ) {
3932
						wp_safe_redirect( wp_get_referer() );
3933
					} else {
3934
						// Take me to Jetpack
3935
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3936
					}
3937
				}
3938
				break;
3939
			case 'jetpack-manage-opt-in':
3940
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3941
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.