Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4388-4402 (lines=15) @@
4385
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4386
				}
4387
				break;
4388
			case 'jetpack-manage-opt-out':
4389
4390
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4391
					// Don't show the banner again
4392
4393
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4394
					// redirect back to the page that had the notice
4395
					if ( wp_get_referer() ) {
4396
						wp_safe_redirect( wp_get_referer() );
4397
					} else {
4398
						// Take me to Jetpack
4399
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4400
					}
4401
				}
4402
				break;
4403
			case 'jetpack-protect-multisite-opt-out':
4404
4405
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4403-4417 (lines=15) @@
4400
					}
4401
				}
4402
				break;
4403
			case 'jetpack-protect-multisite-opt-out':
4404
4405
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4406
					// Don't show the banner again
4407
4408
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4409
					// redirect back to the page that had the notice
4410
					if ( wp_get_referer() ) {
4411
						wp_safe_redirect( wp_get_referer() );
4412
					} else {
4413
						// Take me to Jetpack
4414
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4415
					}
4416
				}
4417
				break;
4418
			case 'jetpack-manage-opt-in':
4419
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4420
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.