Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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