Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3846-3860 (lines=15) @@
3843
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3844
				}
3845
				break;
3846
			case 'jetpack-manage-opt-out':
3847
3848
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3849
					// Don't show the banner again
3850
3851
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3852
					// redirect back to the page that had the notice
3853
					if ( wp_get_referer() ) {
3854
						wp_safe_redirect( wp_get_referer() );
3855
					} else {
3856
						// Take me to Jetpack
3857
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3858
					}
3859
				}
3860
				break;
3861
			case 'jetpack-protect-multisite-opt-out':
3862
3863
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3861-3875 (lines=15) @@
3858
					}
3859
				}
3860
				break;
3861
			case 'jetpack-protect-multisite-opt-out':
3862
3863
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3864
					// Don't show the banner again
3865
3866
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3867
					// redirect back to the page that had the notice
3868
					if ( wp_get_referer() ) {
3869
						wp_safe_redirect( wp_get_referer() );
3870
					} else {
3871
						// Take me to Jetpack
3872
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3873
					}
3874
				}
3875
				break;
3876
			case 'jetpack-manage-opt-in':
3877
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3878
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.