An update to the WP-Members Download Protect extension was released today as version 1.9.8.
This update includes some client library updates, a couple of new API functions, and an improvement to the download error page handling.
Improvements
The main improvement in this release is the handling of the download error page – especially when the login form is in a login error state (such as entering the wrong password on the first try).
Previously, if the login form was in an error state, the form lost the download file key and so after successful login, there was no requested file available. This creates user confusion since they now need to go back to the original link to download the file.
This update corrects that problem while also applying some improvements to the interface. Now all of the messaging includes the div wrappers with the .wpmem_msg class tag so it will be a cleaner display with the form and will match the other plugin dialog messages. It also adds the class .wpmem_db_error which you can target if you want to create a different set of properties from the .wpmem_msg class.
New API Functions
wpmem_dp_file_url_by_id($post_id)
– This function can retrieve the file URL by the ID of the file (attachment post).wpmem_dp_get_key($post_id)
– This function retrieves the file key by post ID.
Updates
This package updates the plugin updates and deployment libraries and improves the plugin loader for smoother handling with version checking and checking for plugin updates. It also updates the utilities library to the latest version.