Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3908-3922 (lines=15) @@
3905
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3906
				}
3907
				break;
3908
			case 'jetpack-manage-opt-out':
3909
3910
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3911
					// Don't show the banner again
3912
3913
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3914
					// redirect back to the page that had the notice
3915
					if ( wp_get_referer() ) {
3916
						wp_safe_redirect( wp_get_referer() );
3917
					} else {
3918
						// Take me to Jetpack
3919
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3920
					}
3921
				}
3922
				break;
3923
			case 'jetpack-protect-multisite-opt-out':
3924
3925
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3923-3937 (lines=15) @@
3920
					}
3921
				}
3922
				break;
3923
			case 'jetpack-protect-multisite-opt-out':
3924
3925
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3926
					// Don't show the banner again
3927
3928
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3929
					// redirect back to the page that had the notice
3930
					if ( wp_get_referer() ) {
3931
						wp_safe_redirect( wp_get_referer() );
3932
					} else {
3933
						// Take me to Jetpack
3934
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3935
					}
3936
				}
3937
				break;
3938
			case 'jetpack-manage-opt-in':
3939
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3940
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.