Make WordPress Core

Ticket #26600: 26600.diff

File 26600.diff, 2.2 KB (added by obenland, 10 years ago)
  • src/wp-admin/css/themes.css

     
    11371137}
    11381138
    11391139p.no-themes {
     1140        clear: both;
    11401141        color: #999;
    11411142        font-size: 18px;
    11421143        font-style: normal;
    11431144        margin: 0;
    1144         padding: 0;
     1145        padding: 100px 0 0;
    11451146        text-align: center;
    11461147        display: none;
    11471148}
  • src/wp-admin/js/theme.js

     
    7979
    8080                // Render and append
    8181                this.view.render();
    82                 this.$el.empty().append( this.view.el ).addClass('rendered');
     82                this.$el.find( '.themes' ).remove();
     83                this.$el.append( this.view.el ).addClass('rendered');
    8384                this.$el.append( '<br class="clear"/>' );
    8485        },
    8586
  • src/wp-admin/theme-install.php

     
    166166                        </div>
    167167                </div>
    168168        </div>
    169         <div class="theme-browser content-filterable"></div>
     169        <div class="theme-browser content-filterable" aria-live="polite">
     170                <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
     171        </div>
    170172        <div class="theme-install-overlay wp-full-overlay expanded"></div>
    171 
    172         <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    173173        <span class="spinner"></span>
    174174
    175175        <br class="clear" />
  • src/wp-admin/themes.php

     
    198198
    199199?>
    200200
    201 <div class="theme-browser">
     201<div class="theme-browser" aria-live="polite">
    202202        <div class="themes">
    203203
    204204<?php
     
    250250<?php endforeach; ?>
    251251        <br class="clear" />
    252252        </div>
     253        <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    253254</div>
    254255<div class="theme-overlay"></div>
    255256
    256 <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    257257
    258258<?php
    259259// List broken themes, if any.