Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4319-4333 (lines=15) @@
4316
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4317
				}
4318
				break;
4319
			case 'jetpack-manage-opt-out':
4320
4321
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4322
					// Don't show the banner again
4323
4324
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4325
					// redirect back to the page that had the notice
4326
					if ( wp_get_referer() ) {
4327
						wp_safe_redirect( wp_get_referer() );
4328
					} else {
4329
						// Take me to Jetpack
4330
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4331
					}
4332
				}
4333
				break;
4334
			case 'jetpack-protect-multisite-opt-out':
4335
4336
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4334-4348 (lines=15) @@
4331
					}
4332
				}
4333
				break;
4334
			case 'jetpack-protect-multisite-opt-out':
4335
4336
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4337
					// Don't show the banner again
4338
4339
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4340
					// redirect back to the page that had the notice
4341
					if ( wp_get_referer() ) {
4342
						wp_safe_redirect( wp_get_referer() );
4343
					} else {
4344
						// Take me to Jetpack
4345
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4346
					}
4347
				}
4348
				break;
4349
			case 'jetpack-manage-opt-in':
4350
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4351
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.