Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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