Make WordPress Core


Ignore:
Timestamp:
04/01/2015 07:49:41 PM (10 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-section.php

    r31918 r31968  
    349349                <h2><?php esc_html_e( 'Themes' ); ?>
    350350                    <span class="title-count theme-count"><?php echo count( $this->controls ) - 1; ?></span>
    351                 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    352                     <a href="<?php echo admin_url( 'theme-install.php' ); ?>" target="_top" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
    353                 <?php endif; ?>
    354351                </h2>
    355352                <div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div>
Note: See TracChangeset for help on using the changeset viewer.