Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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