Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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