Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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