Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3927-3941 (lines=15) @@
3924
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3925
				}
3926
				break;
3927
			case 'jetpack-manage-opt-out':
3928
3929
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3930
					// Don't show the banner again
3931
3932
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3933
					// redirect back to the page that had the notice
3934
					if ( wp_get_referer() ) {
3935
						wp_safe_redirect( wp_get_referer() );
3936
					} else {
3937
						// Take me to Jetpack
3938
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3939
					}
3940
				}
3941
				break;
3942
			case 'jetpack-protect-multisite-opt-out':
3943
3944
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3942-3956 (lines=15) @@
3939
					}
3940
				}
3941
				break;
3942
			case 'jetpack-protect-multisite-opt-out':
3943
3944
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3945
					// Don't show the banner again
3946
3947
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3948
					// redirect back to the page that had the notice
3949
					if ( wp_get_referer() ) {
3950
						wp_safe_redirect( wp_get_referer() );
3951
					} else {
3952
						// Take me to Jetpack
3953
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3954
					}
3955
				}
3956
				break;
3957
			case 'jetpack-manage-opt-in':
3958
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3959
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.