Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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