Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4203-4217 (lines=15) @@
4200
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4201
				}
4202
				break;
4203
			case 'jetpack-manage-opt-out':
4204
4205
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4206
					// Don't show the banner again
4207
4208
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4209
					// redirect back to the page that had the notice
4210
					if ( wp_get_referer() ) {
4211
						wp_safe_redirect( wp_get_referer() );
4212
					} else {
4213
						// Take me to Jetpack
4214
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4215
					}
4216
				}
4217
				break;
4218
			case 'jetpack-protect-multisite-opt-out':
4219
4220
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4218-4232 (lines=15) @@
4215
					}
4216
				}
4217
				break;
4218
			case 'jetpack-protect-multisite-opt-out':
4219
4220
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4221
					// Don't show the banner again
4222
4223
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4224
					// redirect back to the page that had the notice
4225
					if ( wp_get_referer() ) {
4226
						wp_safe_redirect( wp_get_referer() );
4227
					} else {
4228
						// Take me to Jetpack
4229
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4230
					}
4231
				}
4232
				break;
4233
			case 'jetpack-manage-opt-in':
4234
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4235
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.