[wp-trac] [WordPress Trac] #64439: Add admin download functionality for themes in wp-admin
WordPress Trac
noreply at wordpress.org
Sun Dec 21 18:22:39 UTC 2025
#64439: Add admin download functionality for themes in wp-admin
-----------------------------+-----------------------------
Reporter: solankisoftware | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: administration |
-----------------------------+-----------------------------
This patch adds the ability to download themes from the wp-admin Themes
page.
Currently, WordPress does not provide a download button in the admin UI.
Changes included:
- wp-admin/includes/theme.php
- wp-admin/themes.php
The patch adds:
- A "Download" button next to each installed theme.
- Proper security checks to ensure only users with 'manage_options'
capability can download themes.
- Sanitization of file names for safe download.
Testing:
- Tested on a clean WordPress trunk setup.
- Confirmed the download works for active and inactive themes.
- Confirmed no PHP errors are thrown during the process.
Patch file attached: theme-admin-download.patch
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64439>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list