Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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