Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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