Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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