mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Customize: Prevent showing SFTP theme installation notification in multisite when user cannot install themes.
Props flixos90. See #37661, #42184. Fixes #42674. git-svn-id: https://develop.svn.wordpress.org/trunk@42536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4702,8 +4702,9 @@ final class WP_Customize_Manager {
|
||||
'previewFrameSensitivity' => 2000,
|
||||
),
|
||||
'theme' => array(
|
||||
'stylesheet' => $this->get_stylesheet(),
|
||||
'active' => $this->is_theme_active(),
|
||||
'stylesheet' => $this->get_stylesheet(),
|
||||
'active' => $this->is_theme_active(),
|
||||
'_canInstall' => current_user_can( 'install_themes' ),
|
||||
),
|
||||
'url' => array(
|
||||
'preview' => esc_url_raw( $this->get_preview_url() ),
|
||||
|
||||
Reference in New Issue
Block a user