• Plugin Author Lester Chan

    (@gamerz)


    WP-DownloadManager 2.0.0 is a total rewrite of the plugin with Claude Code to make it more modern and testable. There will be breaking changes. Please do test it https://github.com/lesterchan/wp-downloadmanager/archive/refs/heads/master.zip

    WP-DownloadManager 2.0.0 requires WordPress 6.8 and PHP 8.2. A site on an older stack is simply not offered the update, so if WP-DownloadManager has stopped appearing in your updates list, that is why.

    Files, hit counts and settings all survive; the plugin migrates them on the first dashboard load after updating.

    Download Options and Download Templates are one page, at WP-Admin -> Downloads -> Settings, as the Settings and Templates tabs. Bookmarks to admin.php?page=wp-downloadmanager-options and …-templates no longer resolve, and Manage Downloads and Add File have new addresses too.

    Two filters were renamed, and the old names are gone. Code hooking either stops applying, silently: downloads_page is now wp_downloadmanager_page, and download_embedded is now wp_downloadmanager_embedded.

    Every class was renamed: DownloadManager_Options is WP_DownloadManager_Options, DownloadManager_Templates is WP_DownloadManager_Template, and so on. The template tags — downloads_page(), download_embedded(), get_most_downloaded(), get_recent_downloads(), get_downloads_category(), get_download_files(), get_download_size(), get_download_hits() and download_file_url() — keep their names.

    Settings moved to one row. The nineteen download_* rows are folded into wp_downloadmanager_options and deleted, and download_db_version becomes wp_downloadmanager_version. Read them through WP_DownloadManager_Options::get() rather than get_option().

    File icons are drawn, not shipped. The images/ folder is gone and %FILE_ICON% produces the complete icon rather than the name of a GIF. Saved templates using the stock img src=”…%FILE_ICON%” tag are rewritten for you; if you wrapped it in markup of your own, remove the wrapper and leave %FILE_ICON% by itself. Icons take your theme’s text colour. wp_downloadmanager_file_extension_images_path is gone, and wp_downloadmanager_file_extension_image is passed a family name such as archive rather than zip.gif.

    The stylesheet was rewritten. A theme copy of download-css.css becomes wp-downloadmanager.css, and the class download-search-highlight is now wp-downloadmanager-highlight. The plugin no longer sets fonts or colours at all.

    Update all seven WP-Stats plugins together. The downloads-section toggle and its row count lived in two shared, unprefixed WP-Stats rows. Each plugin keeps its own copy now and deletes the shared rows once it has read them, so whichever you update first takes them from the rest. A missing row means “show”, so a block you had switched off may reappear — switch it off again under WP-Admin -> Downloads -> Settings, in the WP-Stats Options section of the Settings tab, where the row count also lives.

    The page I need help with: [log in to see the link]

You must be logged in to reply to this topic.