Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4178-4192 (lines=15) @@
4175
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4176
				}
4177
				break;
4178
			case 'jetpack-manage-opt-out':
4179
4180
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4181
					// Don't show the banner again
4182
4183
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4184
					// redirect back to the page that had the notice
4185
					if ( wp_get_referer() ) {
4186
						wp_safe_redirect( wp_get_referer() );
4187
					} else {
4188
						// Take me to Jetpack
4189
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4190
					}
4191
				}
4192
				break;
4193
			case 'jetpack-protect-multisite-opt-out':
4194
4195
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4193-4207 (lines=15) @@
4190
					}
4191
				}
4192
				break;
4193
			case 'jetpack-protect-multisite-opt-out':
4194
4195
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4196
					// Don't show the banner again
4197
4198
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4199
					// redirect back to the page that had the notice
4200
					if ( wp_get_referer() ) {
4201
						wp_safe_redirect( wp_get_referer() );
4202
					} else {
4203
						// Take me to Jetpack
4204
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4205
					}
4206
				}
4207
				break;
4208
			case 'jetpack-manage-opt-in':
4209
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4210
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.