Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4160-4174 (lines=15) @@
4157
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4158
				}
4159
				break;
4160
			case 'jetpack-manage-opt-out':
4161
4162
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4163
					// Don't show the banner again
4164
4165
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4166
					// redirect back to the page that had the notice
4167
					if ( wp_get_referer() ) {
4168
						wp_safe_redirect( wp_get_referer() );
4169
					} else {
4170
						// Take me to Jetpack
4171
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4172
					}
4173
				}
4174
				break;
4175
			case 'jetpack-protect-multisite-opt-out':
4176
4177
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4175-4189 (lines=15) @@
4172
					}
4173
				}
4174
				break;
4175
			case 'jetpack-protect-multisite-opt-out':
4176
4177
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4178
					// Don't show the banner again
4179
4180
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4181
					// redirect back to the page that had the notice
4182
					if ( wp_get_referer() ) {
4183
						wp_safe_redirect( wp_get_referer() );
4184
					} else {
4185
						// Take me to Jetpack
4186
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4187
					}
4188
				}
4189
				break;
4190
			case 'jetpack-manage-opt-in':
4191
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4192
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.