From 365ed7a6cb0a0f5696db58192704e028c4bbc3b9 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 1 Apr 2015 19:49:41 +0000 Subject: [PATCH] Customizer Theme Switcher: Remove "Add New" references. The current iteration takes you out of the customizer context, which isn't great UX and doesn't really fit into the flows targeted by this particular UI. fixes #31837. git-svn-id: https://develop.svn.wordpress.org/trunk@31968 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-wp-customize-control.php | 28 ------------------- .../class-wp-customize-manager.php | 7 ----- .../class-wp-customize-section.php | 3 -- 3 files changed, 38 deletions(-) diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index 0508de0270..a4ead63c0f 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -1234,34 +1234,6 @@ class WP_Customize_Theme_Control extends WP_Customize_Control { } } -/** - * Customize New Theme Control class. - * - * @since 4.2.0 - * - * @see WP_Customize_Control - */ -class WP_Customize_New_Theme_Control extends WP_Customize_Control { - - /** - * Render the control content. - * - * @since 4.2.0 - */ - public function render_content() { - ?> -
- -
- -
-

-
-
- add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array( - 'section' => 'themes', - 'settings' => 'active_theme', - ) ) ); - } - /* Site Title & Tagline */ $this->add_section( 'title_tagline', array( diff --git a/src/wp-includes/class-wp-customize-section.php b/src/wp-includes/class-wp-customize-section.php index 779f9c6621..1309f245d1 100644 --- a/src/wp-includes/class-wp-customize-section.php +++ b/src/wp-includes/class-wp-customize-section.php @@ -348,9 +348,6 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {

controls ) - 1; ?> - - -