Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4254-4268 (lines=15) @@
4251
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4252
				}
4253
				break;
4254
			case 'jetpack-manage-opt-out':
4255
4256
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4257
					// Don't show the banner again
4258
4259
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4260
					// redirect back to the page that had the notice
4261
					if ( wp_get_referer() ) {
4262
						wp_safe_redirect( wp_get_referer() );
4263
					} else {
4264
						// Take me to Jetpack
4265
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4266
					}
4267
				}
4268
				break;
4269
			case 'jetpack-protect-multisite-opt-out':
4270
4271
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4269-4283 (lines=15) @@
4266
					}
4267
				}
4268
				break;
4269
			case 'jetpack-protect-multisite-opt-out':
4270
4271
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4272
					// Don't show the banner again
4273
4274
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4275
					// redirect back to the page that had the notice
4276
					if ( wp_get_referer() ) {
4277
						wp_safe_redirect( wp_get_referer() );
4278
					} else {
4279
						// Take me to Jetpack
4280
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4281
					}
4282
				}
4283
				break;
4284
			case 'jetpack-manage-opt-in':
4285
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4286
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.