Make WordPress Core

Ticket #31721: 31721.diff

File 31721.diff, 2.1 KB (added by bilalcoder, 9 years ago)

patch which makes enough space for 'Add New' button

  • wp-admin/css/common.css

     
    571571.wrap h2 {
    572572        font-size: 23px;
    573573        font-weight: 400;
    574         padding: 9px 15px 4px 0;
     574        padding: 9px 0 4px 0;
    575575        line-height: 29px;
    576576}
    577577
     
    968968        display: inline;
    969969        top: -3px;
    970970        margin-left: 5px;
    971         margin-right: 20px;
     971        margin-right: 5px;
    972972}
    973973
    974974.filter-items {
  • wp-admin/css/customize-controls.css

     
    44
    55#customize-controls a {
    66        text-decoration: none;
     7        float:right;
    78}
    89
    910#customize-controls h3 {
  • wp-includes/class-wp-customize-section.php

     
    348348                        <span class="control-panel-back themes-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
    349349                        <div class="customize-themes-panel control-panel-content themes-php">
    350350                                <h2><?php esc_html_e( 'Themes' ); ?>
     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; ?>
    351354                                        <span class="title-count theme-count"><?php echo count( $this->controls ) - 1; ?></span>
    352                                 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    353                                         <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>
    354                                 <?php endif; ?>
    355355                                </h2>
    356356                                <div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme details' ); ?>"></div>
    357357                                <div id="customize-container"></div>