WP-DownloadManager changelog
By Lester Chan, on WordPress.org since 2007. 3,000+ active installs.
28 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- FIXED: Updating to 2.0.1 could reset your download path to wp-content, and every file then answered “File does not exist” — the listing still showed them, the links still pointed at them, and none of them downloaded. The update re-checks your settings, and the check that keeps the download path inside wp-content resolved one end of the comparison and not the other, so a path that had never left it read as an escape on any host where the site’s directory is reached through a symlink — /home2 standing in for /home on a lot of shared hosting, or a release directory for the live one. It also ran with nobody watching: an automatic background update reset the path and the notice explaining why went nowhere. Both ends are resolved now, and a path that is already the one in use stands whatever it is — the check applies to a path being moved somewhere new. If your path was reset, set it back under Downloads -> Settings and it will hold
- FIXED: Manage Downloads lost its ID column in 2.0.0, which left the Edit link’s URL as the only place on that screen to find the number [download id="…"] needs. The column is back, and sorts
-
- NEW: A Settings link on the plugin’s row on the Plugins screen
- CHANGED: A stylesheet named wp-downloadmanager.css in the parent theme now overrides the plugin’s copy too; a child theme’s copy still wins over both
- CHANGED: The update migration runs on any request rather than only when an admin page loads, so a site updated by an automatic background update no longer serves its front end from unmigrated settings until somebody logs in
- FIXED: A fresh install shipped one category, General, in the numbered slot that means “no category”, so the Add File dropdown offered it as category 0 and every file you added was filed there. The first time you saved the Settings tab — for any reason at all — the category list was renumbered and General became category 1, while your files stayed at 0 and stopped showing a category on the downloads page, in the feed, in the widget and on Manage Downloads. Nothing warned you, and re-picking the category on every file was the only way back. The list now ships with that slot empty, and updating moves your categories up one and moves every file with them, so a file filed under General still reads General
- FIXED: Manage Downloads read “N/A” for a file in no category, or in one you had deleted, while the Delete File confirmation for that same file left the category blank — one click apart, on the row you had just clicked
-
- FIXED: %FILE% and %FILE_DOWNLOAD_URL% were substituted into the templates unescaped, where %FILE_NAME% and %FILE_DESCRIPTION% are filtered. Those two are the fields a site owner is meant to put markup in; a file path and a URL are not. The stock templates put the URL in a double-quoted attribute, which is the only reason it never bit — a template of your own using single quotes had nothing behind it
- FIXED: Search highlighting rewrote already-rendered markup, so a search term that happened to appear inside an attribute — example in a stored link to example.com — spliced the highlight into the middle of the attribute and ended it early. Any visitor could corrupt a listing’s markup through the search box. Only the text between tags is highlighted now
- FIXED: The Browse source stored whatever file name was posted, and the download endpoint read it. A name climbing out of the downloads directory — /../../../wp-config.php — was accepted by Add File and served to anyone, because the stored name is a relative path and neither sanitize_text_field() nor the character filter that follows it touches . or /. Add File now refuses such a name, and the endpoint resolves the path and confirms it is inside the downloads directory before reading a byte, so a row written by anything else is refused too
- FIXED: A remote file URL was checked for its scheme and its port and nothing else, so http://169.254.169.254/latest/meta-data/ and http://127.0.0.1/ were both accepted — and the endpoint proxies a remote file with readfile(), which is not wp_safe_remote_get() and makes none of the checks WordPress otherwise would. The host must now resolve outside this network, it is checked again when the file is served rather than only when it is saved, and redirects are no longer followed. wp_downloadmanager_host_is_public is the escape hatch for a mirror that genuinely is on the local network
- BREAKING: Requires WordPress 6.8 and PHP 8.2.
- BREAKING: The downloads_page filter is now wp_downloadmanager_page and the download_embedded filter is now wp_downloadmanager_embedded. The old names are gone.
And 30 more notes.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.