Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4636-4650 (lines=15) @@
4633
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4634
				}
4635
				break;
4636
			case 'jetpack-manage-opt-out':
4637
4638
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4639
					// Don't show the banner again
4640
4641
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4642
					// redirect back to the page that had the notice
4643
					if ( wp_get_referer() ) {
4644
						wp_safe_redirect( wp_get_referer() );
4645
					} else {
4646
						// Take me to Jetpack
4647
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4648
					}
4649
				}
4650
				break;
4651
			case 'jetpack-protect-multisite-opt-out':
4652
4653
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4651-4665 (lines=15) @@
4648
					}
4649
				}
4650
				break;
4651
			case 'jetpack-protect-multisite-opt-out':
4652
4653
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4654
					// Don't show the banner again
4655
4656
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4657
					// redirect back to the page that had the notice
4658
					if ( wp_get_referer() ) {
4659
						wp_safe_redirect( wp_get_referer() );
4660
					} else {
4661
						// Take me to Jetpack
4662
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4663
					}
4664
				}
4665
				break;
4666
			case 'jetpack-manage-opt-in':
4667
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4668
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.