Make WordPress Core

Ticket #28587: 28587.2.patch

File 28587.2.patch, 933 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/js/theme.js

     
    190190                        return match.test( haystack );
    191191                });
    192192
     193                if ( results.length === 0 ) {
     194                        this.trigger( 'query:empty' );
     195                } else {
     196                        $( 'body' ).removeClass( 'no-results' );
     197                }
     198
    193199                this.reset( results );
    194200        },
    195201
  • src/wp-admin/themes.php

     
    233233</div>
    234234<div class="theme-overlay"></div>
    235235
     236<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
     237
    236238<?php
    237239// List broken themes, if any.
    238240if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) {