Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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