Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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