mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +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:
@@ -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() {
|
||||
?>
|
||||
<div class="theme add-new-theme">
|
||||
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" target="_top">
|
||||
|
||||
Reference in New Issue
Block a user