Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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