WordPress.org

Make WordPress Core

Ticket #26601: 26601.themes.patch

File 26601.themes.patch, 1.8 KB (added by joedolson, 3 years ago)

Patch for themes screen

  • wp-admin/css/themes.css

     
    3131        line-height: 1.5;
    3232}
    3333
     34/* Search form container */
     35.themes-php .theme-search {
     36        display: inline-block;
     37}
     38
    3439/* Position admin messages */
    3540.theme .notice,
    3641.theme .notice.is-dismissible {
  • wp-admin/js/theme.js

     
    8383        },
    8484
    8585        // Defines search element container
    86         searchContainer: $( '#wpbody h1:first' ),
     86        searchContainer: $( '#wpbody .theme-search' ),
    8787
    8888        // Search input and view
    8989        // for current theme collection
  • 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>
    157158        <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    158159                <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>
    159         <?php endif; ?>
    160         </h1>
     160        <?php endif; ?>
     161        <div class='theme-search'></div>
     162        <hr class="wp-header-end">
    161163<?php
    162164if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
    163165<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>