Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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