Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4862-4876 (lines=15) @@
4859
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4860
				}
4861
				break;
4862
			case 'jetpack-manage-opt-out':
4863
4864
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4865
					// Don't show the banner again
4866
4867
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4868
					// redirect back to the page that had the notice
4869
					if ( wp_get_referer() ) {
4870
						wp_safe_redirect( wp_get_referer() );
4871
					} else {
4872
						// Take me to Jetpack
4873
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4874
					}
4875
				}
4876
				break;
4877
			case 'jetpack-protect-multisite-opt-out':
4878
4879
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4877-4891 (lines=15) @@
4874
					}
4875
				}
4876
				break;
4877
			case 'jetpack-protect-multisite-opt-out':
4878
4879
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4880
					// Don't show the banner again
4881
4882
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4883
					// redirect back to the page that had the notice
4884
					if ( wp_get_referer() ) {
4885
						wp_safe_redirect( wp_get_referer() );
4886
					} else {
4887
						// Take me to Jetpack
4888
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4889
					}
4890
				}
4891
				break;
4892
			case 'jetpack-manage-opt-in':
4893
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4894
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.