Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4106-4120 (lines=15) @@
4103
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4104
				}
4105
				break;
4106
			case 'jetpack-manage-opt-out':
4107
4108
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4109
					// Don't show the banner again
4110
4111
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4112
					// redirect back to the page that had the notice
4113
					if ( wp_get_referer() ) {
4114
						wp_safe_redirect( wp_get_referer() );
4115
					} else {
4116
						// Take me to Jetpack
4117
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4118
					}
4119
				}
4120
				break;
4121
			case 'jetpack-protect-multisite-opt-out':
4122
4123
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4121-4135 (lines=15) @@
4118
					}
4119
				}
4120
				break;
4121
			case 'jetpack-protect-multisite-opt-out':
4122
4123
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4124
					// Don't show the banner again
4125
4126
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4127
					// redirect back to the page that had the notice
4128
					if ( wp_get_referer() ) {
4129
						wp_safe_redirect( wp_get_referer() );
4130
					} else {
4131
						// Take me to Jetpack
4132
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4133
					}
4134
				}
4135
				break;
4136
			case 'jetpack-manage-opt-in':
4137
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4138
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.