Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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