Make WordPress Core


Ignore:
Timestamp:
08/09/2015 06:59:34 PM (9 years ago)
Author:
ocean90
Message:

Customizer: Remove obsolete .control-panel-back and .customize-overlay-close buttons.

props afercia, ocean90.
see #31336.
fixes #33229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r33492 r33599  
    124124    <form id="customize-controls" class="wrap wp-full-overlay-sidebar">
    125125        <div id="customize-header-actions" class="wp-full-overlay-header">
    126             <div class="primary-actions">
    127                 <?php
    128                     $save_text = $wp_customize->is_theme_active() ? __( 'Save &amp; Publish' ) : __( 'Save &amp; Activate' );
    129                     submit_button( $save_text, 'primary save', 'save', false );
    130                 ?>
    131                 <span class="spinner"></span>
    132                 <a class="customize-controls-preview-toggle" href="#">
    133                     <span class="controls"><?php _e( 'Customize' ); ?></span>
    134                     <span class="preview"><?php _e( 'Preview' ); ?></span>
    135                 </a>
    136                 <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>">
    137                     <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span>
    138                 </a>
    139                 <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
    140             </div>
    141             <div class="secondary-actions">
    142                 <button type="button" class="customize-overlay-close">
    143                     <span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span>
    144                 </button>
    145             </div>
     126            <?php
     127            $save_text = $wp_customize->is_theme_active() ? __( 'Save &amp; Publish' ) : __( 'Save &amp; Activate' );
     128            submit_button( $save_text, 'primary save', 'save', false );
     129            ?>
     130            <span class="spinner"></span>
     131            <a class="customize-controls-preview-toggle" href="#">
     132                <span class="controls"><?php _e( 'Customize' ); ?></span>
     133                <span class="preview"><?php _e( 'Preview' ); ?></span>
     134            </a>
     135            <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>">
     136                <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span>
     137            </a>
    146138        </div>
    147139
Note: See TracChangeset for help on using the changeset viewer.