diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index 46ce984586..de377d8fe2 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -1243,14 +1243,11 @@ class WP_Customize_Theme_Control extends WP_Customize_Control { class WP_Customize_New_Theme_Control extends WP_Customize_Control { /** - * Render the new control. + * Render the control content. * * @since 4.2.0 */ - public function render() { - if ( is_multisite() || ! current_user_can( 'install_themes') ) { - return; - } + public function render_content() { ?>
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 0f449fc87a..4be5622382 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -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 */