Customize: Disable theme installation in multisite.

Props celloexpressions, iamfriendly.
Fixes #38370.


git-svn-id: https://develop.svn.wordpress.org/trunk@38887 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2016-10-24 18:16:41 +00:00
parent ad319b1b1f
commit 81c6e564fc
1 changed files with 45 additions and 43 deletions

View File

@ -3026,6 +3026,7 @@ final class WP_Customize_Manager {
'priority' => 0,
) ) );
if ( ! is_multisite() ) {
$this->add_section( new WP_Customize_Themes_Section( $this, 'search_themes', array(
'title' => __( 'Search themes…' ),
'text_before' => __( 'Browse all WordPress.org themes' ),
@ -3074,6 +3075,7 @@ final class WP_Customize_Manager {
'panel' => 'themes',
'priority' => 30,
) ) );
}
// Themes Setting (unused - the theme is considerably more fundamental to the Customizer experience).
$this->add_setting( new WP_Customize_Filter_Setting( $this, 'active_theme', array(