Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4138-4152 (lines=15) @@
4135
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4136
				}
4137
				break;
4138
			case 'jetpack-manage-opt-out':
4139
4140
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4141
					// Don't show the banner again
4142
4143
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4144
					// redirect back to the page that had the notice
4145
					if ( wp_get_referer() ) {
4146
						wp_safe_redirect( wp_get_referer() );
4147
					} else {
4148
						// Take me to Jetpack
4149
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4150
					}
4151
				}
4152
				break;
4153
			case 'jetpack-protect-multisite-opt-out':
4154
4155
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4153-4167 (lines=15) @@
4150
					}
4151
				}
4152
				break;
4153
			case 'jetpack-protect-multisite-opt-out':
4154
4155
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4156
					// Don't show the banner again
4157
4158
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4159
					// redirect back to the page that had the notice
4160
					if ( wp_get_referer() ) {
4161
						wp_safe_redirect( wp_get_referer() );
4162
					} else {
4163
						// Take me to Jetpack
4164
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4165
					}
4166
				}
4167
				break;
4168
			case 'jetpack-manage-opt-in':
4169
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4170
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.