Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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