The Download Protect extension was updated to version 2.0.0 today. This includes some changes in terms of localization (translation), some bug fixes, and the incorporation of HTML5 audio player support separate from the video player.
The primary bug that was fixed in this version is when the core WP-Members plugin is set to use memberships, but a specific file download does not have a membership requirement. The faulty logic in the processing resulted in a non-empty array, but the membership requirement was empty. The plugin was looking for either an empty array or one with memberships; it didn’t account for a non-empty array where the only entry had an empty value. Regardless of whether that makes any sense, it is fixed in this version – both for the upload/editing of files in the admin as well as the front end handling and messaging.
The other bug fix in this version is the use of the select2 library. Somewhere in the plugin’s history, the library was moved in the file structure, but the code that uses select2 was not updated to the new location. This is fixed in this update and should be readily apparent when using the file upload or edit dialogs when memberships are enabled.
The admin has been updated to use the admin notice container in core WP-Members. This won’t result in anything noticable other than simply cleaning up the plugin’s code. There are some other minor code improvements in this update as well, such as minifying the CSS and JS assets.
The code improvements resulted in the need to increase the minimum WP version to 5.3. Honestly, that shouldn’t be a problem for most (all?) users and if you’re actually on anything less than version 6.7 or 6.8, I would highly recommend you get your install up to date anyway.
The plugin’s textdomain has been changed from ‘wp-members-dp’ to ‘wp-members-download-protect’. This changes the names of the language files for translation. That is not a big deal if you use what is in the plugin, but if you load a custom file, you’ll need to be aware of the change.
Lastly, an audio player shortcode has been added. For now, this leverages the code that is already there for the HTML5 video player shortcode, but separates it specifically for audio. This may expand functionality in future releases.