Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4452-4466 (lines=15) @@
4449
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4450
				}
4451
				break;
4452
			case 'jetpack-manage-opt-out':
4453
4454
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4455
					// Don't show the banner again
4456
4457
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4458
					// redirect back to the page that had the notice
4459
					if ( wp_get_referer() ) {
4460
						wp_safe_redirect( wp_get_referer() );
4461
					} else {
4462
						// Take me to Jetpack
4463
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4464
					}
4465
				}
4466
				break;
4467
			case 'jetpack-protect-multisite-opt-out':
4468
4469
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4467-4481 (lines=15) @@
4464
					}
4465
				}
4466
				break;
4467
			case 'jetpack-protect-multisite-opt-out':
4468
4469
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4470
					// Don't show the banner again
4471
4472
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4473
					// redirect back to the page that had the notice
4474
					if ( wp_get_referer() ) {
4475
						wp_safe_redirect( wp_get_referer() );
4476
					} else {
4477
						// Take me to Jetpack
4478
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4479
					}
4480
				}
4481
				break;
4482
			case 'jetpack-manage-opt-in':
4483
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4484
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.