Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3947-3961 (lines=15) @@
3944
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3945
				}
3946
				break;
3947
			case 'jetpack-manage-opt-out':
3948
3949
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3950
					// Don't show the banner again
3951
3952
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3953
					// redirect back to the page that had the notice
3954
					if ( wp_get_referer() ) {
3955
						wp_safe_redirect( wp_get_referer() );
3956
					} else {
3957
						// Take me to Jetpack
3958
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3959
					}
3960
				}
3961
				break;
3962
			case 'jetpack-protect-multisite-opt-out':
3963
3964
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3962-3976 (lines=15) @@
3959
					}
3960
				}
3961
				break;
3962
			case 'jetpack-protect-multisite-opt-out':
3963
3964
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3965
					// Don't show the banner again
3966
3967
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3968
					// redirect back to the page that had the notice
3969
					if ( wp_get_referer() ) {
3970
						wp_safe_redirect( wp_get_referer() );
3971
					} else {
3972
						// Take me to Jetpack
3973
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3974
					}
3975
				}
3976
				break;
3977
			case 'jetpack-manage-opt-in':
3978
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3979
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.