Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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