Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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