Make WordPress Core


Ignore:
Timestamp:
04/01/2015 11:34:23 AM (10 years ago)
Author:
ocean90
Message:

Customizer Theme Switcher: Fix invalid HTML markup when New Theme control is added.

see #31203.

File:
1 edited

Legend:

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

    r31941 r31950  
    11721172        }
    11731173
    1174         $this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array(
    1175             'section' => 'themes',
    1176             'settings' => 'active_theme',
    1177         ) ) );
     1174        if ( ! is_multisite() && current_user_can( 'install_themes' ) ) {
     1175            $this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array(
     1176                'section' => 'themes',
     1177                'settings' => 'active_theme',
     1178            ) ) );
     1179        }
    11781180
    11791181        /* Site Title & Tagline */
Note: See TracChangeset for help on using the changeset viewer.