Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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