Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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