Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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