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

WordPress Trac noreply at wordpress.org
Wed Jan 7 17:02:02 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
-------------------------------------------------+-------------------------
Changes (by solankisoftware):

 * keywords:  has-patch 2nd-opinion => has-patch 2nd-opinion needs-testing
     needs-unit-tests


Comment:

 I’ve updated the patch to add the download functionality directly in the
 Theme File Editor screen, based on the feedback provided.

 This patch includes changes only to:
 wp-admin/theme-editor.php

 **What’s included:
 **
 - Added a secure download option for themes from the Theme File Editor.

 - Proper capability checks (manage_options).

 - Nonce verification for security.

 - File name sanitization before download.

 **Testing:
 **
 - Tested on a clean WordPress install.

 - Verified only administrators can access the download option.

 - Confirmed downloads work for both active and inactive themes.

 - No PHP warnings or notices observed.

 Looking forward to feedback and happy to iterate further if needed.
 Thanks!

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


More information about the wp-trac mailing list