WordPress.org

Make WordPress Core

Ticket #26601: 26601.themes.2.patch

File 26601.themes.2.patch, 2.0 KB (added by afercia, 3 years ago)
  • src/wp-admin/css/themes.css

     
    949949                float: none;
    950950                clear: both;
    951951                left: 0;
    952                 top: 0;
    953952                right: 0;
    954                 margin: 10px 0;
     953                margin: -5px 0 20px 0;
    955954                width: 100%;
    956955                max-width: 280px;
    957956        }
  • src/wp-admin/js/theme.js

     
    8383        },
    8484
    8585        // Defines search element container
    86         searchContainer: $( '#wpbody h1:first' ),
     86        searchContainer: $( '.search-form' ),
    8787
    8888        // Search input and view
    8989        // for current theme collection
     
    17731773
    17741774        activeClass: 'current',
    17751775
    1776         // Overwrite search container class to append search
    1777         // in new location
    1778         searchContainer: $( '.wp-filter .search-form' ),
    1779 
    17801776        /*
    17811777         * When users press the "Upload Theme" button, show the upload form in place.
    17821778         */
  • src/wp-admin/themes.php

     
    152152?>
    153153
    154154<div class="wrap">
    155         <h1><?php esc_html_e( 'Themes' ); ?>
     155        <h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?>
    156156                <span class="title-count theme-count"><?php echo count( $themes ); ?></span>
     157        </h1>
     158
    157159        <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    158160                <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
    159161        <?php endif; ?>
    160         </h1>
     162
     163        <span class="search-form"></span>
     164
     165        <hr class="wp-header-end">
    161166<?php
    162167if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
    163168<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>