Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4165-4179 (lines=15) @@
4162
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4163
				}
4164
				break;
4165
			case 'jetpack-manage-opt-out':
4166
4167
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4168
					// Don't show the banner again
4169
4170
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4171
					// redirect back to the page that had the notice
4172
					if ( wp_get_referer() ) {
4173
						wp_safe_redirect( wp_get_referer() );
4174
					} else {
4175
						// Take me to Jetpack
4176
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4177
					}
4178
				}
4179
				break;
4180
			case 'jetpack-protect-multisite-opt-out':
4181
4182
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4180-4194 (lines=15) @@
4177
					}
4178
				}
4179
				break;
4180
			case 'jetpack-protect-multisite-opt-out':
4181
4182
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4183
					// Don't show the banner again
4184
4185
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4186
					// redirect back to the page that had the notice
4187
					if ( wp_get_referer() ) {
4188
						wp_safe_redirect( wp_get_referer() );
4189
					} else {
4190
						// Take me to Jetpack
4191
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4192
					}
4193
				}
4194
				break;
4195
			case 'jetpack-manage-opt-in':
4196
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4197
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.