Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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