Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4233-4247 (lines=15) @@
4230
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4231
				}
4232
				break;
4233
			case 'jetpack-manage-opt-out':
4234
4235
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4236
					// Don't show the banner again
4237
4238
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4239
					// redirect back to the page that had the notice
4240
					if ( wp_get_referer() ) {
4241
						wp_safe_redirect( wp_get_referer() );
4242
					} else {
4243
						// Take me to Jetpack
4244
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4245
					}
4246
				}
4247
				break;
4248
			case 'jetpack-protect-multisite-opt-out':
4249
4250
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4248-4262 (lines=15) @@
4245
					}
4246
				}
4247
				break;
4248
			case 'jetpack-protect-multisite-opt-out':
4249
4250
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4251
					// Don't show the banner again
4252
4253
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4254
					// redirect back to the page that had the notice
4255
					if ( wp_get_referer() ) {
4256
						wp_safe_redirect( wp_get_referer() );
4257
					} else {
4258
						// Take me to Jetpack
4259
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4260
					}
4261
				}
4262
				break;
4263
			case 'jetpack-manage-opt-in':
4264
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4265
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.