Opened 7 years ago
Closed 7 years ago
#42674 closed defect (bug) (fixed)
Multisite issue: Customizer display message to add themes to blog to non super admins
Reported by: | lenasterg | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9.3 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Customize | Keywords: | has-patch fixed-major commit |
Focuses: | multisite | Cc: |
Description
Hi.
This is a multisite issue.
The Customizer displays message to install themes and link to .../wp-admin/theme-install.php, without checking if the user is a super admin or a simple blog admin.
So the user after clicking the link gets the "Sorry, you are not allowed to install themes on this site." error.
Attachments (1)
Change History (11)
#1
@
7 years ago
- Summary changed from Mulisite issue: Customizer display message to add themes to blog to non super admins to Multisite issue: Customizer display message to add themes to blog to non super admins
#4
@
7 years ago
- Keywords has-patch added; needs-patch removed
42674.diff adds an additional JS variable that contains whether the current user can install themes. The message is then only shown if they can and if filesystem credentials are needed.
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
The js notification with the link to admin_url( 'theme-install.php' ) is the 'themeInstallUnavailable' defined at https://core.trac.wordpress.org/browser/trunk/src/wp-includes/script-loader.php#L599
and is displayed in:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/js/customize-controls.js#L3078