[wp-trac] [WordPress Trac] #64439: Add admin download functionality for themes in wp-admin

WordPress Trac noreply at wordpress.org
Wed Jan 14 05:53:24 UTC 2026


#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:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  needs-unit-tests                               |  administration
-------------------------------------------------+-------------------------

Comment (by huzaifaalmesbah):

 == Test Report & Feedback

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/10731

 === Feature Description

 This patch adds a “Download Theme” button to the Theme File Editor,
 allowing users to download the active theme directly from the editor
 screen.

 === Steps to Reproduce or Test
 1. Navigate to Tools in the WordPress admin dashboard.
 2. Open Theme File Editor.
 3. Observe that the Download Theme button is not displayed before applying
 the patch.

 === Expected Results
 - ✅ A Download Theme button should be visible in the Theme File Editor.
 - ✅ Users should be able to download the selected theme as a ZIP file.

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 143.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 ==== Actual Results
 Before applying the patch
 - ❌ The Download Theme button was not available in the Theme File Editor.

 After applying the patch
 - ✅ The Download Theme button is now displayed correctly.
 - ✅ The feature works as expected and allows downloading the theme.

 === Additional Issue: Theme Download Filename Format

 When clicking the Download Theme button, the downloaded ZIP file name
 appears as:

 - ❌ Twenty-Twenty-Five.zip

 This uses the **theme display name** with title-style capitalization and
 hyphen separation.

 However, in the WordPress.org theme directory, the theme is distributed
 using the **theme slug and version**, for example:

 - ✅ twentytwentyfive.1.4.zip

 Using the display name instead of the slug may feel inconsistent with
 WordPress standards and can give the impression that the theme slug is
 split or treated as separate words.

 === Expected / Suggested Behavior
 - ✅ Use the **theme slug** for the downloaded file name, optionally
 including the version, for example:
   - twentytwentyfive.zip
   - twentytwentyfive.1.4.zip

 Using the slug-based filename would better align with WordPress theme
 directory conventions, improve consistency across downloads, and avoid
 confusion caused by title-formatted names.

 === UI / UX Suggestion

 Currently, the **Download Theme** button appears in a separate row from
 the **Update File** button.

 From a UI/UX perspective, it may be cleaner and more intuitive to place
 both **Update File** and **Download Theme** actions on the same row, as
 they are closely related actions. Grouping them together could improve
 visual consistency, reduce vertical spacing, and make related actions
 easier to discover.

 === Screenshots
 [[Image(https://i.ibb.co/sdLG9mWf/Huzaifa-20260114114616.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64439#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list