Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4845-4859 (lines=15) @@
4842
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4843
				}
4844
				break;
4845
			case 'jetpack-manage-opt-out':
4846
4847
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4848
					// Don't show the banner again
4849
4850
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4851
					// redirect back to the page that had the notice
4852
					if ( wp_get_referer() ) {
4853
						wp_safe_redirect( wp_get_referer() );
4854
					} else {
4855
						// Take me to Jetpack
4856
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4857
					}
4858
				}
4859
				break;
4860
			case 'jetpack-protect-multisite-opt-out':
4861
4862
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4860-4874 (lines=15) @@
4857
					}
4858
				}
4859
				break;
4860
			case 'jetpack-protect-multisite-opt-out':
4861
4862
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4863
					// Don't show the banner again
4864
4865
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4866
					// redirect back to the page that had the notice
4867
					if ( wp_get_referer() ) {
4868
						wp_safe_redirect( wp_get_referer() );
4869
					} else {
4870
						// Take me to Jetpack
4871
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4872
					}
4873
				}
4874
				break;
4875
			case 'jetpack-manage-opt-in':
4876
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4877
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.