WordPress.org

Make WordPress Core

Changeset 14742


Ignore:
Timestamp:
05/19/10 13:04:24 (4 years ago)
Author:
dd32
Message:

Allow for an empty search result set on the Installed Plugin searching, ie. when a non-existent term is searched. Fixes #13451

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r14313 r14742  
    458458 
    459459$plugin_array_name = "${status}_plugins"; 
    460 if ( empty($$plugin_array_name) && $status != 'all' ) { 
     460if ( empty($$plugin_array_name) && !in_array($status, array('all', 'search')) ) { 
    461461    $status = 'all'; 
    462462    $plugin_array_name = "${status}_plugins"; 
Note: See TracChangeset for help on using the changeset viewer.