Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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