Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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