Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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