Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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