Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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