Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4058-4072 (lines=15) @@
4055
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4056
				}
4057
				break;
4058
			case 'jetpack-manage-opt-out':
4059
4060
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4061
					// Don't show the banner again
4062
4063
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4064
					// redirect back to the page that had the notice
4065
					if ( wp_get_referer() ) {
4066
						wp_safe_redirect( wp_get_referer() );
4067
					} else {
4068
						// Take me to Jetpack
4069
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4070
					}
4071
				}
4072
				break;
4073
			case 'jetpack-protect-multisite-opt-out':
4074
4075
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4073-4087 (lines=15) @@
4070
					}
4071
				}
4072
				break;
4073
			case 'jetpack-protect-multisite-opt-out':
4074
4075
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4076
					// Don't show the banner again
4077
4078
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4079
					// redirect back to the page that had the notice
4080
					if ( wp_get_referer() ) {
4081
						wp_safe_redirect( wp_get_referer() );
4082
					} else {
4083
						// Take me to Jetpack
4084
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4085
					}
4086
				}
4087
				break;
4088
			case 'jetpack-manage-opt-in':
4089
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4090
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.