Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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