Make WordPress Core

Changeset 59924


Ignore:
Timestamp:
03/04/2025 06:05:15 AM (5 days ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.