Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4295-4309 (lines=15) @@
4292
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4293
				}
4294
				break;
4295
			case 'jetpack-manage-opt-out':
4296
4297
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4298
					// Don't show the banner again
4299
4300
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4301
					// redirect back to the page that had the notice
4302
					if ( wp_get_referer() ) {
4303
						wp_safe_redirect( wp_get_referer() );
4304
					} else {
4305
						// Take me to Jetpack
4306
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4307
					}
4308
				}
4309
				break;
4310
			case 'jetpack-protect-multisite-opt-out':
4311
4312
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4310-4324 (lines=15) @@
4307
					}
4308
				}
4309
				break;
4310
			case 'jetpack-protect-multisite-opt-out':
4311
4312
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4313
					// Don't show the banner again
4314
4315
					update_site_option( 'jetpack_dismissed_protect_multisite_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-manage-opt-in':
4326
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4327
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.