Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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