[wp-trac] [WordPress Trac] #57379: A Way to Disable Export Theme

WordPress Trac noreply at wordpress.org
Tue Mar 4 06:05:32 UTC 2025


#57379: A Way to Disable Export Theme
---------------------------------------------+-----------------------
 Reporter:  unsalkorkmaz                     |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.8
Component:  Administration                   |     Version:  6.1.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59924" 59924]:
 {{{
 #!CommitTicketReference repository="" revision="59924"
 Editor: Use the `export` cap to determine whether users can export themes.

 This changeset replaces `edit_theme_options` with the `export` capability
 to determine whether the current user can export themes. That condition
 determines whether to show the Export Theme button in the Site Editor.
 Using `export` capability makes it more consistent with general export
 capabilities across the administration.

 Props unsalkorkmaz, rajinsharwar, audrasjb, peterwilsoncc, desrosj,
 Mamaduka, TimothyBlynJacobs.
 Fixes #57379.
 }}}

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


More information about the wp-trac mailing list