Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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