Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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