- Timestamp:
- 01/22/2018 06:14:10 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r42403 r42536 2568 2568 // Temporary special function since supplying SFTP credentials does not work yet. See #42184. 2569 2569 function disableInstallButtons() { 2570 return disableSwitchButtons() || true === api.settings.theme._filesystemCredentialsNeeded;2570 return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; 2571 2571 } 2572 2572 … … 3065 3065 3066 3066 // Temporary since supplying SFTP credentials does not work yet. See #42184 3067 if ( api.settings.theme._ filesystemCredentialsNeeded ) {3067 if ( api.settings.theme._canInstall && api.settings.theme._filesystemCredentialsNeeded ) { 3068 3068 panel.notifications.add( new api.Notification( 'theme_install_unavailable', { 3069 3069 message: api.l10n.themeInstallUnavailable, … … 5093 5093 // Temporary special function since supplying SFTP credentials does not work yet. See #42184. 5094 5094 function disableInstallButtons() { 5095 return disableSwitchButtons() || true === api.settings.theme._filesystemCredentialsNeeded;5095 return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; 5096 5096 } 5097 5097 function updateButtons() { -
trunk/src/wp-includes/class-wp-customize-manager.php
r42343 r42536 4703 4703 ), 4704 4704 'theme' => array( 4705 'stylesheet' => $this->get_stylesheet(), 4706 'active' => $this->is_theme_active(), 4705 'stylesheet' => $this->get_stylesheet(), 4706 'active' => $this->is_theme_active(), 4707 '_canInstall' => current_user_can( 'install_themes' ), 4707 4708 ), 4708 4709 'url' => array(
Note: See TracChangeset
for help on using the changeset viewer.