Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4303-4317 (lines=15) @@
4300
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4301
				}
4302
				break;
4303
			case 'jetpack-manage-opt-out':
4304
4305
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4306
					// Don't show the banner again
4307
4308
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4309
					// redirect back to the page that had the notice
4310
					if ( wp_get_referer() ) {
4311
						wp_safe_redirect( wp_get_referer() );
4312
					} else {
4313
						// Take me to Jetpack
4314
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4315
					}
4316
				}
4317
				break;
4318
			case 'jetpack-protect-multisite-opt-out':
4319
4320
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4318-4332 (lines=15) @@
4315
					}
4316
				}
4317
				break;
4318
			case 'jetpack-protect-multisite-opt-out':
4319
4320
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4321
					// Don't show the banner again
4322
4323
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4324
					// redirect back to the page that had the notice
4325
					if ( wp_get_referer() ) {
4326
						wp_safe_redirect( wp_get_referer() );
4327
					} else {
4328
						// Take me to Jetpack
4329
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4330
					}
4331
				}
4332
				break;
4333
			case 'jetpack-manage-opt-in':
4334
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4335
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.