Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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