Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4883-4897 (lines=15) @@
4880
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4881
				}
4882
				break;
4883
			case 'jetpack-manage-opt-out':
4884
4885
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4886
					// Don't show the banner again
4887
4888
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4889
					// redirect back to the page that had the notice
4890
					if ( wp_get_referer() ) {
4891
						wp_safe_redirect( wp_get_referer() );
4892
					} else {
4893
						// Take me to Jetpack
4894
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4895
					}
4896
				}
4897
				break;
4898
			case 'jetpack-protect-multisite-opt-out':
4899
4900
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4898-4912 (lines=15) @@
4895
					}
4896
				}
4897
				break;
4898
			case 'jetpack-protect-multisite-opt-out':
4899
4900
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4901
					// Don't show the banner again
4902
4903
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4904
					// redirect back to the page that had the notice
4905
					if ( wp_get_referer() ) {
4906
						wp_safe_redirect( wp_get_referer() );
4907
					} else {
4908
						// Take me to Jetpack
4909
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4910
					}
4911
				}
4912
				break;
4913
			case 'jetpack-manage-opt-in':
4914
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4915
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.