Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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