Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4116-4130 (lines=15) @@
4113
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4114
				}
4115
				break;
4116
			case 'jetpack-manage-opt-out':
4117
4118
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4119
					// Don't show the banner again
4120
4121
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4122
					// redirect back to the page that had the notice
4123
					if ( wp_get_referer() ) {
4124
						wp_safe_redirect( wp_get_referer() );
4125
					} else {
4126
						// Take me to Jetpack
4127
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4128
					}
4129
				}
4130
				break;
4131
			case 'jetpack-protect-multisite-opt-out':
4132
4133
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4131-4145 (lines=15) @@
4128
					}
4129
				}
4130
				break;
4131
			case 'jetpack-protect-multisite-opt-out':
4132
4133
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4134
					// Don't show the banner again
4135
4136
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4137
					// redirect back to the page that had the notice
4138
					if ( wp_get_referer() ) {
4139
						wp_safe_redirect( wp_get_referer() );
4140
					} else {
4141
						// Take me to Jetpack
4142
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4143
					}
4144
				}
4145
				break;
4146
			case 'jetpack-manage-opt-in':
4147
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4148
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.