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-control.php

    r31954 r31968  
    12361236
    12371237/**
    1238  * Customize New Theme Control class.
    1239  *
    1240  * @since 4.2.0
    1241  *
    1242  * @see WP_Customize_Control
    1243  */
    1244 class WP_Customize_New_Theme_Control extends WP_Customize_Control {
    1245 
    1246     /**
    1247      * Render the control content.
    1248      *
    1249      * @since 4.2.0
    1250      */
    1251     public function render_content() {
    1252         ?>
    1253         <div class="theme add-new-theme">
    1254             <a href="<?php echo admin_url( 'theme-install.php' ); ?>" target="_top">
    1255                 <div class="theme-screenshot">
    1256                     <span></span>
    1257                 </div>
    1258                 <h3 class="theme-name"><?php _e( 'Add New Theme' ); ?></h3>
    1259             </a>
    1260         </div>
    1261         <?php
    1262     }
    1263 }
    1264 
    1265 /**
    12661238 * Widget Area Customize Control class.
    12671239 *
Note: See TracChangeset for help on using the changeset viewer.