Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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