Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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