WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2018 06:15:54 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 for 4.9 branch.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/class-wp-customize-manager.php

    r42172 r42537  
    46374637            ),
    46384638            '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' ),
    46414642            ),
    46424643            'url'      => array(
Note: See TracChangeset for help on using the changeset viewer.