Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4084-4098 (lines=15) @@
4081
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4082
				}
4083
				break;
4084
			case 'jetpack-manage-opt-out':
4085
4086
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4087
					// Don't show the banner again
4088
4089
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4090
					// redirect back to the page that had the notice
4091
					if ( wp_get_referer() ) {
4092
						wp_safe_redirect( wp_get_referer() );
4093
					} else {
4094
						// Take me to Jetpack
4095
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4096
					}
4097
				}
4098
				break;
4099
			case 'jetpack-protect-multisite-opt-out':
4100
4101
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4099-4113 (lines=15) @@
4096
					}
4097
				}
4098
				break;
4099
			case 'jetpack-protect-multisite-opt-out':
4100
4101
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4102
					// Don't show the banner again
4103
4104
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4105
					// redirect back to the page that had the notice
4106
					if ( wp_get_referer() ) {
4107
						wp_safe_redirect( wp_get_referer() );
4108
					} else {
4109
						// Take me to Jetpack
4110
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4111
					}
4112
				}
4113
				break;
4114
			case 'jetpack-manage-opt-in':
4115
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4116
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.