Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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