Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4266-4280 (lines=15) @@
4263
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4264
				}
4265
				break;
4266
			case 'jetpack-manage-opt-out':
4267
4268
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4269
					// Don't show the banner again
4270
4271
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4272
					// redirect back to the page that had the notice
4273
					if ( wp_get_referer() ) {
4274
						wp_safe_redirect( wp_get_referer() );
4275
					} else {
4276
						// Take me to Jetpack
4277
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4278
					}
4279
				}
4280
				break;
4281
			case 'jetpack-protect-multisite-opt-out':
4282
4283
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4281-4295 (lines=15) @@
4278
					}
4279
				}
4280
				break;
4281
			case 'jetpack-protect-multisite-opt-out':
4282
4283
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4284
					// Don't show the banner again
4285
4286
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4287
					// redirect back to the page that had the notice
4288
					if ( wp_get_referer() ) {
4289
						wp_safe_redirect( wp_get_referer() );
4290
					} else {
4291
						// Take me to Jetpack
4292
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4293
					}
4294
				}
4295
				break;
4296
			case 'jetpack-manage-opt-in':
4297
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4298
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.