Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4287-4301 (lines=15) @@
4284
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4285
				}
4286
				break;
4287
			case 'jetpack-manage-opt-out':
4288
4289
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4290
					// Don't show the banner again
4291
4292
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4293
					// redirect back to the page that had the notice
4294
					if ( wp_get_referer() ) {
4295
						wp_safe_redirect( wp_get_referer() );
4296
					} else {
4297
						// Take me to Jetpack
4298
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4299
					}
4300
				}
4301
				break;
4302
			case 'jetpack-protect-multisite-opt-out':
4303
4304
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4302-4316 (lines=15) @@
4299
					}
4300
				}
4301
				break;
4302
			case 'jetpack-protect-multisite-opt-out':
4303
4304
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4305
					// Don't show the banner again
4306
4307
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4308
					// redirect back to the page that had the notice
4309
					if ( wp_get_referer() ) {
4310
						wp_safe_redirect( wp_get_referer() );
4311
					} else {
4312
						// Take me to Jetpack
4313
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4314
					}
4315
				}
4316
				break;
4317
			case 'jetpack-manage-opt-in':
4318
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4319
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.