Changeset 42537
- Timestamp:
- 01/22/2018 06:15:54 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/js/customize-controls.js
r42188 r42537 2565 2565 // Temporary special function since supplying SFTP credentials does not work yet. See #42184. 2566 2566 function disableInstallButtons() { 2567 return disableSwitchButtons() || true === api.settings.theme._filesystemCredentialsNeeded;2567 return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; 2568 2568 } 2569 2569 … … 3075 3075 3076 3076 // Temporary since supplying SFTP credentials does not work yet. See #42184 3077 if ( api.settings.theme._ filesystemCredentialsNeeded ) {3077 if ( api.settings.theme._canInstall && api.settings.theme._filesystemCredentialsNeeded ) { 3078 3078 panel.notifications.add( new api.Notification( 'theme_install_unavailable', { 3079 3079 message: api.l10n.themeInstallUnavailable, … … 5133 5133 // Temporary special function since supplying SFTP credentials does not work yet. See #42184. 5134 5134 function disableInstallButtons() { 5135 return disableSwitchButtons() || true === api.settings.theme._filesystemCredentialsNeeded;5135 return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; 5136 5136 } 5137 5137 function updateButtons() { -
branches/4.9/src/wp-includes/class-wp-customize-manager.php
r42172 r42537 4637 4637 ), 4638 4638 'theme' => array( 4639 'stylesheet' => $this->get_stylesheet(), 4640 'active' => $this->is_theme_active(), 4639 'stylesheet' => $this->get_stylesheet(), 4640 'active' => $this->is_theme_active(), 4641 '_canInstall' => current_user_can( 'install_themes' ), 4641 4642 ), 4642 4643 'url' => array(
Note: See TracChangeset
for help on using the changeset viewer.