Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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