Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3943-3957 (lines=15) @@
3940
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3941
				}
3942
				break;
3943
			case 'jetpack-manage-opt-out':
3944
3945
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3946
					// Don't show the banner again
3947
3948
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3949
					// redirect back to the page that had the notice
3950
					if ( wp_get_referer() ) {
3951
						wp_safe_redirect( wp_get_referer() );
3952
					} else {
3953
						// Take me to Jetpack
3954
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3955
					}
3956
				}
3957
				break;
3958
			case 'jetpack-protect-multisite-opt-out':
3959
3960
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3958-3972 (lines=15) @@
3955
					}
3956
				}
3957
				break;
3958
			case 'jetpack-protect-multisite-opt-out':
3959
3960
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3961
					// Don't show the banner again
3962
3963
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3964
					// redirect back to the page that had the notice
3965
					if ( wp_get_referer() ) {
3966
						wp_safe_redirect( wp_get_referer() );
3967
					} else {
3968
						// Take me to Jetpack
3969
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3970
					}
3971
				}
3972
				break;
3973
			case 'jetpack-manage-opt-in':
3974
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3975
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.