Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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