Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4517-4531 (lines=15) @@
4514
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4515
				}
4516
				break;
4517
			case 'jetpack-manage-opt-out':
4518
4519
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4520
					// Don't show the banner again
4521
4522
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4523
					// redirect back to the page that had the notice
4524
					if ( wp_get_referer() ) {
4525
						wp_safe_redirect( wp_get_referer() );
4526
					} else {
4527
						// Take me to Jetpack
4528
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4529
					}
4530
				}
4531
				break;
4532
			case 'jetpack-protect-multisite-opt-out':
4533
4534
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4532-4546 (lines=15) @@
4529
					}
4530
				}
4531
				break;
4532
			case 'jetpack-protect-multisite-opt-out':
4533
4534
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4535
					// Don't show the banner again
4536
4537
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4538
					// redirect back to the page that had the notice
4539
					if ( wp_get_referer() ) {
4540
						wp_safe_redirect( wp_get_referer() );
4541
					} else {
4542
						// Take me to Jetpack
4543
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4544
					}
4545
				}
4546
				break;
4547
			case 'jetpack-manage-opt-in':
4548
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4549
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.