Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4049-4063 (lines=15) @@
4046
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4047
				}
4048
				break;
4049
			case 'jetpack-manage-opt-out':
4050
4051
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4052
					// Don't show the banner again
4053
4054
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4055
					// redirect back to the page that had the notice
4056
					if ( wp_get_referer() ) {
4057
						wp_safe_redirect( wp_get_referer() );
4058
					} else {
4059
						// Take me to Jetpack
4060
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4061
					}
4062
				}
4063
				break;
4064
			case 'jetpack-protect-multisite-opt-out':
4065
4066
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4064-4078 (lines=15) @@
4061
					}
4062
				}
4063
				break;
4064
			case 'jetpack-protect-multisite-opt-out':
4065
4066
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4067
					// Don't show the banner again
4068
4069
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4070
					// redirect back to the page that had the notice
4071
					if ( wp_get_referer() ) {
4072
						wp_safe_redirect( wp_get_referer() );
4073
					} else {
4074
						// Take me to Jetpack
4075
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4076
					}
4077
				}
4078
				break;
4079
			case 'jetpack-manage-opt-in':
4080
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4081
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.