Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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