Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4080-4094 (lines=15) @@
4077
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4078
				}
4079
				break;
4080
			case 'jetpack-manage-opt-out':
4081
4082
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4083
					// Don't show the banner again
4084
4085
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4086
					// redirect back to the page that had the notice
4087
					if ( wp_get_referer() ) {
4088
						wp_safe_redirect( wp_get_referer() );
4089
					} else {
4090
						// Take me to Jetpack
4091
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4092
					}
4093
				}
4094
				break;
4095
			case 'jetpack-protect-multisite-opt-out':
4096
4097
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4095-4109 (lines=15) @@
4092
					}
4093
				}
4094
				break;
4095
			case 'jetpack-protect-multisite-opt-out':
4096
4097
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4098
					// Don't show the banner again
4099
4100
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4101
					// redirect back to the page that had the notice
4102
					if ( wp_get_referer() ) {
4103
						wp_safe_redirect( wp_get_referer() );
4104
					} else {
4105
						// Take me to Jetpack
4106
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4107
					}
4108
				}
4109
				break;
4110
			case 'jetpack-manage-opt-in':
4111
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4112
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.