Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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