Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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