Make WordPress Core

Changeset 28890


Ignore:
Timestamp:
06/29/2014 09:15:08 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Show a "No themes found" message if the search for an installed theme doesn't produce any results.

props gauravmittal1995 for initial patch.
fixes #28587.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

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

    r28500 r28890  
    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.
Note: See TracChangeset for help on using the changeset viewer.