Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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