Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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