Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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