Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4501-4515 (lines=15) @@
4498
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4499
				}
4500
				break;
4501
			case 'jetpack-manage-opt-out':
4502
4503
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4504
					// Don't show the banner again
4505
4506
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4507
					// redirect back to the page that had the notice
4508
					if ( wp_get_referer() ) {
4509
						wp_safe_redirect( wp_get_referer() );
4510
					} else {
4511
						// Take me to Jetpack
4512
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4513
					}
4514
				}
4515
				break;
4516
			case 'jetpack-protect-multisite-opt-out':
4517
4518
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4516-4530 (lines=15) @@
4513
					}
4514
				}
4515
				break;
4516
			case 'jetpack-protect-multisite-opt-out':
4517
4518
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4519
					// Don't show the banner again
4520
4521
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4522
					// redirect back to the page that had the notice
4523
					if ( wp_get_referer() ) {
4524
						wp_safe_redirect( wp_get_referer() );
4525
					} else {
4526
						// Take me to Jetpack
4527
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4528
					}
4529
				}
4530
				break;
4531
			case 'jetpack-manage-opt-in':
4532
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4533
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.