WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/01/2015 07:49:41 PM (6 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

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

    r31950 r31968  
    11671167            $this->add_control( new WP_Customize_Theme_Control( $this, $theme_id, array(
    11681168                'theme' => $theme,
    1169                 'section' => 'themes',
    1170                 'settings' => 'active_theme',
    1171             ) ) );
    1172         }
    1173 
    1174         if ( ! is_multisite() && current_user_can( 'install_themes' ) ) {
    1175             $this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array(
    11761169                'section' => 'themes',
    11771170                'settings' => 'active_theme',
Note: See TracChangeset for help on using the changeset viewer.