Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4791-4805 (lines=15) @@
4788
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4789
				}
4790
				break;
4791
			case 'jetpack-manage-opt-out':
4792
4793
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4794
					// Don't show the banner again
4795
4796
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4797
					// redirect back to the page that had the notice
4798
					if ( wp_get_referer() ) {
4799
						wp_safe_redirect( wp_get_referer() );
4800
					} else {
4801
						// Take me to Jetpack
4802
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4803
					}
4804
				}
4805
				break;
4806
			case 'jetpack-protect-multisite-opt-out':
4807
4808
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4806-4820 (lines=15) @@
4803
					}
4804
				}
4805
				break;
4806
			case 'jetpack-protect-multisite-opt-out':
4807
4808
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4809
					// Don't show the banner again
4810
4811
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4812
					// redirect back to the page that had the notice
4813
					if ( wp_get_referer() ) {
4814
						wp_safe_redirect( wp_get_referer() );
4815
					} else {
4816
						// Take me to Jetpack
4817
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4818
					}
4819
				}
4820
				break;
4821
			case 'jetpack-manage-opt-in':
4822
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4823
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.