Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4216-4230 (lines=15) @@
4213
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4214
				}
4215
				break;
4216
			case 'jetpack-manage-opt-out':
4217
4218
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4219
					// Don't show the banner again
4220
4221
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4222
					// redirect back to the page that had the notice
4223
					if ( wp_get_referer() ) {
4224
						wp_safe_redirect( wp_get_referer() );
4225
					} else {
4226
						// Take me to Jetpack
4227
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4228
					}
4229
				}
4230
				break;
4231
			case 'jetpack-protect-multisite-opt-out':
4232
4233
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4231-4245 (lines=15) @@
4228
					}
4229
				}
4230
				break;
4231
			case 'jetpack-protect-multisite-opt-out':
4232
4233
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4234
					// Don't show the banner again
4235
4236
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4237
					// redirect back to the page that had the notice
4238
					if ( wp_get_referer() ) {
4239
						wp_safe_redirect( wp_get_referer() );
4240
					} else {
4241
						// Take me to Jetpack
4242
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4243
					}
4244
				}
4245
				break;
4246
			case 'jetpack-manage-opt-in':
4247
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4248
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.