Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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