Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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