Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4430-4444 (lines=15) @@
4427
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4428
				}
4429
				break;
4430
			case 'jetpack-manage-opt-out':
4431
4432
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4433
					// Don't show the banner again
4434
4435
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4436
					// redirect back to the page that had the notice
4437
					if ( wp_get_referer() ) {
4438
						wp_safe_redirect( wp_get_referer() );
4439
					} else {
4440
						// Take me to Jetpack
4441
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4442
					}
4443
				}
4444
				break;
4445
			case 'jetpack-protect-multisite-opt-out':
4446
4447
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4445-4459 (lines=15) @@
4442
					}
4443
				}
4444
				break;
4445
			case 'jetpack-protect-multisite-opt-out':
4446
4447
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4448
					// Don't show the banner again
4449
4450
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4451
					// redirect back to the page that had the notice
4452
					if ( wp_get_referer() ) {
4453
						wp_safe_redirect( wp_get_referer() );
4454
					} else {
4455
						// Take me to Jetpack
4456
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4457
					}
4458
				}
4459
				break;
4460
			case 'jetpack-manage-opt-in':
4461
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4462
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.