Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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