Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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