Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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