WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2018 06:14:10 AM (4 years ago)
Author:
westonruter
Message:

Customize: Prevent showing SFTP theme installation notification in multisite when user cannot install themes.

Props flixos90.
See #37661, #42184.
Fixes #42674.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r42343 r42536  
    47034703            ),
    47044704            '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' ),
    47074708            ),
    47084709            'url'                    => array(
Note: See TracChangeset for help on using the changeset viewer.