The WP-Members Download Protect extension received an update today as version 1.9.9. This update includes some improvements and some fixes.
Fixes
There are two key fixes in this release. First, there was an occasional problem when accessing a download after a login. If the user followed a download link but was not logged in, they were taken to the error page and asked to log in first. After that process, depending on your WP installations order of operations, the redownload button did not always work. This was due to a repassing of the error object making the plugin believe it was still in the download error state.
That has been fixed in this update, so re-downloading should be smooth for the user, provided you have set up the appropriate download error page using the [wpmem_dp_error] shortcode and identified that page’s location in the plugin’s settings.
The second fix is that with the new WP-Members password reset by key, the query variable “key” is used by both that process (and WordPress itself) and the Download Protect plugin. However, it means different things in each of these situations. That has been corrected in this update so password resets should not result in the user being taken to the re-download page.
Updates
There are three new filter hooks in this release. They will be added to the documentation soon, but they are all documented inline in the code.
- wpmem_dp_file_info
- wpmem_dp_file_type
- wpmem_dp_link_default_text
There is a new API function as well, which will also be added to the docs.
- wpmem_dp_rename_file
There were also improvements to the WP-CLI interface that make it easier to rename files (using the above mentioned API function) and the “move” and “import” commands were improved.