Modify API functions that take a published flag to return published and unpublished documents together. Use DP_PUB_ALL for this.
Previously only unpublished or published documents (i.e. not both) could be accessed during one call.