Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4367-4381 (lines=15) @@
4364
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4365
				}
4366
				break;
4367
			case 'jetpack-manage-opt-out':
4368
4369
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4370
					// Don't show the banner again
4371
4372
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4373
					// redirect back to the page that had the notice
4374
					if ( wp_get_referer() ) {
4375
						wp_safe_redirect( wp_get_referer() );
4376
					} else {
4377
						// Take me to Jetpack
4378
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4379
					}
4380
				}
4381
				break;
4382
			case 'jetpack-protect-multisite-opt-out':
4383
4384
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4382-4396 (lines=15) @@
4379
					}
4380
				}
4381
				break;
4382
			case 'jetpack-protect-multisite-opt-out':
4383
4384
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4385
					// Don't show the banner again
4386
4387
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4388
					// redirect back to the page that had the notice
4389
					if ( wp_get_referer() ) {
4390
						wp_safe_redirect( wp_get_referer() );
4391
					} else {
4392
						// Take me to Jetpack
4393
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4394
					}
4395
				}
4396
				break;
4397
			case 'jetpack-manage-opt-in':
4398
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4399
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.