Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3801-3815 (lines=15) @@
3798
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3799
				}
3800
				break;
3801
			case 'jetpack-manage-opt-out':
3802
3803
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3804
					// Don't show the banner again
3805
3806
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3807
					// redirect back to the page that had the notice
3808
					if ( wp_get_referer() ) {
3809
						wp_safe_redirect( wp_get_referer() );
3810
					} else {
3811
						// Take me to Jetpack
3812
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3813
					}
3814
				}
3815
				break;
3816
			case 'jetpack-protect-multisite-opt-out':
3817
3818
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3816-3830 (lines=15) @@
3813
					}
3814
				}
3815
				break;
3816
			case 'jetpack-protect-multisite-opt-out':
3817
3818
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3819
					// Don't show the banner again
3820
3821
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3822
					// redirect back to the page that had the notice
3823
					if ( wp_get_referer() ) {
3824
						wp_safe_redirect( wp_get_referer() );
3825
					} else {
3826
						// Take me to Jetpack
3827
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3828
					}
3829
				}
3830
				break;
3831
			case 'jetpack-manage-opt-in':
3832
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3833
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.