Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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