mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Customizer Theme Switcher: Fix invalid HTML markup when New Theme control is added.
see #31203. git-svn-id: https://develop.svn.wordpress.org/trunk@31950 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1171,10 +1171,12 @@ final class WP_Customize_Manager {
|
||||
) ) );
|
||||
}
|
||||
|
||||
$this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array(
|
||||
'section' => 'themes',
|
||||
'settings' => 'active_theme',
|
||||
) ) );
|
||||
if ( ! is_multisite() && current_user_can( 'install_themes' ) ) {
|
||||
$this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array(
|
||||
'section' => 'themes',
|
||||
'settings' => 'active_theme',
|
||||
) ) );
|
||||
}
|
||||
|
||||
/* Site Title & Tagline */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user